models

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddStickerToSetParams

type AddStickerToSetParams struct {
	UserID  int64        `json:"user_id"`
	Name    string       `json:"name"`
	Sticker InputSticker `json:"sticker"`
}

https://core.telegram.org/bots/api#addstickertoset

type Animation

type Animation struct {
	FileID       string     `json:"file_id"`
	FileUniqueID string     `json:"file_unique_id"`
	Width        int        `json:"width"`
	Height       int        `json:"height"`
	Duration     int        `json:"duration"`
	Thumbnail    *PhotoSize `json:"thumbnail,omitempty"`
	FileName     string     `json:"file_name,omitempty"`
	MimeType     string     `json:"mime_type,omitempty"`
	FileSize     int64      `json:"file_size,omitempty"`
}

https://core.telegram.org/bots/api#animation

type AnswerInlineQueryParams

type AnswerInlineQueryParams struct {
	InlineQueryID string        `json:"inline_query_id"`
	Results       []interface{} `json:"results"`
	CacheTime     int           `json:"cache_time,omitempty"`
	IsPersonal    bool          `json:"is_personal,omitempty"`
	NextOffset    string        `json:"next_offset,omitempty"`
	Button        interface{}   `json:"button,omitempty"`
}

https://core.telegram.org/bots/api#answerinlinequery

type AnswerPreCheckoutQueryParams

type AnswerPreCheckoutQueryParams struct {
	PreCheckoutQueryID string `json:"pre_checkout_query_id"`
	OK                 bool   `json:"ok"`
	ErrorMessage       string `json:"error_message,omitempty"`
}

https://core.telegram.org/bots/api#answerprecheckoutquery

type AnswerShippingQueryParams

type AnswerShippingQueryParams struct {
	ShippingQueryID string           `json:"shipping_query_id"`
	OK              bool             `json:"ok"`
	ShippingOptions []ShippingOption `json:"shipping_options,omitempty"`
	ErrorMessage    string           `json:"error_message,omitempty"`
}

https://core.telegram.org/bots/api#answershippingquery

type ApproveChatJoinRequestParams

type ApproveChatJoinRequestParams struct {
	ChatID interface{} `json:"chat_id"`
	UserID int64       `json:"user_id"`
}

https://core.telegram.org/bots/api#approvechatjoinrequest

type Audio

type Audio struct {
	FileID       string     `json:"file_id"`
	FileUniqueID string     `json:"file_unique_id"`
	Duration     int        `json:"duration"`
	Performer    string     `json:"performer,omitempty"`
	Title        string     `json:"title,omitempty"`
	FileName     string     `json:"file_name,omitempty"`
	MimeType     string     `json:"mime_type,omitempty"`
	FileSize     int64      `json:"file_size,omitempty"`
	Thumbnail    *PhotoSize `json:"thumbnail,omitempty"`
}

https://core.telegram.org/bots/api#audio

type BanChatMemberParams

type BanChatMemberParams struct {
	ChatID         interface{} `json:"chat_id"`
	UserID         int64       `json:"user_id"`
	UntilDate      int64       `json:"until_date,omitempty"`
	RevokeMessages bool        `json:"revoke_messages,omitempty"`
}

https://core.telegram.org/bots/api#banchatmember

type BanChatSenderChatParams

type BanChatSenderChatParams struct {
	ChatID       interface{} `json:"chat_id"`
	SenderChatID int64       `json:"sender_chat_id"`
}

https://core.telegram.org/bots/api#banchatsenderchat

type BotCommand

type BotCommand struct {
	Command     string `json:"command"`
	Description string `json:"description"`
}

https://core.telegram.org/bots/api#botcommand

type BotDescription

type BotDescription struct {
	Description string `json:"description"`
}

https://core.telegram.org/bots/api#botdescription

type BotName

type BotName struct {
	Name string `json:"name"`
}

https://core.telegram.org/bots/api#botname

type BotShortDescription

type BotShortDescription struct {
	ShortDescription string `json:"short_description"`
}

https://core.telegram.org/bots/api#botshortdescription

type CallbackQuery

type CallbackQuery struct {
	ID              string   `json:"id"`
	From            User     `json:"from"`
	Message         *Message `json:"message,omitempty"`
	InlineMessageID string   `json:"inline_message_id,omitempty"`
	ChatInstance    string   `json:"chat_instance"`
	Data            string   `json:"data,omitempty"`
	GameShortName   string   `json:"game_short_name,omitempty"`
}

https://core.telegram.org/bots/api#callbackquery

type Chat

type Chat struct {
	ID               int64    `json:"id"`
	Type             ChatType `json:"type"`
	Title            string   `json:"title,omitempty"`
	Username         string   `json:"username,omitempty"`
	FirstName        string   `json:"first_name,omitempty"`
	LastName         string   `json:"last_name,omitempty"`
	IsDirectMessages bool     `json:"is_direct_messages,omitempty"`
}

https://core.telegram.org/bots/api#chat

type ChatAdministratorRights

type ChatAdministratorRights struct {
	IsAnonymous         bool `json:"is_anonymous"`
	CanManageChat       bool `json:"can_manage_chat"`
	CanDeleteMessages   bool `json:"can_delete_messages"`
	CanManageVideoChats bool `json:"can_manage_video_chats"`
	CanRestrictMembers  bool `json:"can_restrict_members"`
	CanPromoteMembers   bool `json:"can_promote_members"`
	CanChangeInfo       bool `json:"can_change_info"`
	CanInviteUsers      bool `json:"can_invite_users"`
	CanPostMessages     bool `json:"can_post_messages,omitempty"`
	CanEditMessages     bool `json:"can_edit_messages,omitempty"`
	CanPinMessages      bool `json:"can_pin_messages,omitempty"`
	CanManageTopics     bool `json:"can_manage_topics,omitempty"`
}

https://core.telegram.org/bots/api#chatadministratorrights

type ChatInviteLink struct {
	InviteLink              string `json:"invite_link"`
	Creator                 User   `json:"creator"`
	CreatesJoinRequest      bool   `json:"creates_join_request"`
	IsPrimary               bool   `json:"is_primary"`
	IsRevoked               bool   `json:"is_revoked"`
	Name                    string `json:"name,omitempty"`
	ExpireDate              int64  `json:"expire_date,omitempty"`
	MemberLimit             int    `json:"member_limit,omitempty"`
	PendingJoinRequestCount int    `json:"pending_join_request_count,omitempty"`
}

https://core.telegram.org/bots/api#chatinvitelink

type ChatJoinRequest

type ChatJoinRequest struct {
	Chat       Chat            `json:"chat"`
	From       User            `json:"from"`
	UserChatID int64           `json:"user_chat_id"`
	Date       int64           `json:"date"`
	Bio        string          `json:"bio,omitempty"`
	InviteLink *ChatInviteLink `json:"invite_link,omitempty"`
}

https://core.telegram.org/bots/api#chatjoinrequest

type ChatMember

type ChatMember struct {
	Status                string `json:"status"`
	User                  User   `json:"user"`
	IsAnonymous           bool   `json:"is_anonymous,omitempty"`
	CustomTitle           string `json:"custom_title,omitempty"`
	CanBeEdited           bool   `json:"can_be_edited,omitempty"`
	CanManageChat         bool   `json:"can_manage_chat,omitempty"`
	CanDeleteMessages     bool   `json:"can_delete_messages,omitempty"`
	CanManageVideoChats   bool   `json:"can_manage_video_chats,omitempty"`
	CanRestrictMembers    bool   `json:"can_restrict_members,omitempty"`
	CanPromoteMembers     bool   `json:"can_promote_members,omitempty"`
	CanChangeInfo         bool   `json:"can_change_info,omitempty"`
	CanInviteUsers        bool   `json:"can_invite_users,omitempty"`
	CanPostMessages       bool   `json:"can_post_messages,omitempty"`
	CanEditMessages       bool   `json:"can_edit_messages,omitempty"`
	CanPinMessages        bool   `json:"can_pin_messages,omitempty"`
	CanManageTopics       bool   `json:"can_manage_topics,omitempty"`
	IsMember              bool   `json:"is_member,omitempty"`
	CanSendMessages       bool   `json:"can_send_messages,omitempty"`
	CanSendAudios         bool   `json:"can_send_audios,omitempty"`
	CanSendDocuments      bool   `json:"can_send_documents,omitempty"`
	CanSendPhotos         bool   `json:"can_send_photos,omitempty"`
	CanSendVideos         bool   `json:"can_send_videos,omitempty"`
	CanSendVideoNotes     bool   `json:"can_send_video_notes,omitempty"`
	CanSendVoiceNotes     bool   `json:"can_send_voice_notes,omitempty"`
	CanSendPolls          bool   `json:"can_send_polls,omitempty"`
	CanSendOtherMessages  bool   `json:"can_send_other_messages,omitempty"`
	CanAddWebPagePreviews bool   `json:"can_add_web_page_previews,omitempty"`
	UntilDate             int64  `json:"until_date,omitempty"`
}

https://core.telegram.org/bots/api#chatmember

type ChatOwnerChanged

type ChatOwnerChanged struct {
	NewOwner User `json:"new_owner"`
}

https://core.telegram.org/bots/api#chatownerchanged

type ChatOwnerLeft

type ChatOwnerLeft struct {
	NewOwner *User `json:"new_owner,omitempty"`
}

https://core.telegram.org/bots/api#chatownerleft

type ChatPermissions

type ChatPermissions struct {
	CanSendMessages       bool `json:"can_send_messages,omitempty"`
	CanSendAudios         bool `json:"can_send_audios,omitempty"`
	CanSendDocuments      bool `json:"can_send_documents,omitempty"`
	CanSendPhotos         bool `json:"can_send_photos,omitempty"`
	CanSendVideos         bool `json:"can_send_videos,omitempty"`
	CanSendVideoNotes     bool `json:"can_send_video_notes,omitempty"`
	CanSendVoiceNotes     bool `json:"can_send_voice_notes,omitempty"`
	CanSendPolls          bool `json:"can_send_polls,omitempty"`
	CanSendOtherMessages  bool `json:"can_send_other_messages,omitempty"`
	CanAddWebPagePreviews bool `json:"can_add_web_page_previews,omitempty"`
	CanChangeInfo         bool `json:"can_change_info,omitempty"`
	CanInviteUsers        bool `json:"can_invite_users,omitempty"`
	CanPinMessages        bool `json:"can_pin_messages,omitempty"`
	CanManageTopics       bool `json:"can_manage_topics,omitempty"`
}

https://core.telegram.org/bots/api#chatpermissions

type ChatPhoto

type ChatPhoto struct {
	SmallFileID       string `json:"small_file_id"`
	SmallFileUniqueID string `json:"small_file_unique_id"`
	BigFileID         string `json:"big_file_id"`
	BigFileUniqueID   string `json:"big_file_unique_id"`
}

https://core.telegram.org/bots/api#chatphoto

type ChatType

type ChatType string

https://core.telegram.org/bots/api#chattype

const (
	ChatTypePrivate    ChatType = "private"
	ChatTypeGroup      ChatType = "group"
	ChatTypeSupergroup ChatType = "supergroup"
	ChatTypeChannel    ChatType = "channel"
)

type Checklist

type Checklist struct {
	Title                    string          `json:"title"`
	TitleEntities            []MessageEntity `json:"title_entities,omitempty"`
	Tasks                    []ChecklistTask `json:"tasks"`
	OthersCanAddTasks        bool            `json:"others_can_add_tasks,omitempty"`
	OthersCanMarkTasksAsDone bool            `json:"others_can_mark_tasks_as_done,omitempty"`
}

https://core.telegram.org/bots/api#checklist

type ChecklistTask

type ChecklistTask struct {
	Text            string          `json:"text"`
	TextEntities    []MessageEntity `json:"text_entities,omitempty"`
	IsDone          bool            `json:"is_done"`
	CompletedByUser *User           `json:"completed_by_user,omitempty"`
	CompletedByChat *Chat           `json:"completed_by_chat,omitempty"`
}

https://core.telegram.org/bots/api#checklisttask

type ChosenInlineResult

type ChosenInlineResult struct {
	ResultID        string    `json:"result_id"`
	From            User      `json:"from"`
	Location        *Location `json:"location,omitempty"`
	InlineMessageID string    `json:"inline_message_id,omitempty"`
	Query           string    `json:"query"`
}

https://core.telegram.org/bots/api#choseninlineresult

type CloseForumTopicParams

type CloseForumTopicParams struct {
	ChatID          interface{} `json:"chat_id"`
	MessageThreadID int         `json:"message_thread_id"`
}

https://core.telegram.org/bots/api#closeforumtopic

type CloseGeneralForumTopicParams

type CloseGeneralForumTopicParams struct {
	ChatID interface{} `json:"chat_id"`
}

https://core.telegram.org/bots/api#closegeneralforumtopic

type Contact

type Contact struct {
	PhoneNumber string `json:"phone_number"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name,omitempty"`
	UserID      int64  `json:"user_id,omitempty"`
	VCard       string `json:"vcard,omitempty"`
}

https://core.telegram.org/bots/api#contact

type CopyMessageParams

type CopyMessageParams struct {
	ChatID                   interface{}     `json:"chat_id"`
	MessageThreadID          int64           `json:"message_thread_id,omitempty"`
	FromChatID               interface{}     `json:"from_chat_id"`
	MessageID                int64           `json:"message_id"`
	Caption                  string          `json:"caption,omitempty"`
	ParseMode                string          `json:"parse_mode,omitempty"`
	CaptionEntities          []MessageEntity `json:"caption_entities,omitempty"`
	DisableNotification      bool            `json:"disable_notification,omitempty"`
	ProtectContent           bool            `json:"protect_content,omitempty"`
	ReplyToMessageID         int64           `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool            `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              interface{}     `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#copymessage

type CopyMessagesParams

type CopyMessagesParams struct {
	ChatID                interface{} `json:"chat_id"`
	MessageThreadID       int         `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID int         `json:"direct_messages_topic_id,omitempty"`
	FromChatID            interface{} `json:"from_chat_id"`
	MessageIDs            []int       `json:"message_ids"`
	DisableNotification   bool        `json:"disable_notification,omitempty"`
	ProtectContent        bool        `json:"protect_content,omitempty"`
	RemoveCaption         bool        `json:"remove_caption,omitempty"`
}

https://core.telegram.org/bots/api#copymessages

type CopyTextButton added in v0.2.2

type CopyTextButton struct {
	Text string `json:"text"`
}

https://core.telegram.org/bots/api#copytextbutton

type CreateChatInviteLinkParams

type CreateChatInviteLinkParams struct {
	ChatID             interface{} `json:"chat_id"`
	Name               string      `json:"name,omitempty"`
	ExpireDate         int64       `json:"expire_date,omitempty"`
	MemberLimit        int         `json:"member_limit,omitempty"`
	CreatesJoinRequest bool        `json:"creates_join_request,omitempty"`
}

https://core.telegram.org/bots/api#createchatinvitelink

type CreateForumTopicParams

type CreateForumTopicParams struct {
	ChatID            interface{} `json:"chat_id"`
	Name              string      `json:"name"`
	IconColor         int         `json:"icon_color,omitempty"`
	IconCustomEmojiID string      `json:"icon_custom_emoji_id,omitempty"`
}

https://core.telegram.org/bots/api#createforumtopic

type CreateInvoiceLinkParams

type CreateInvoiceLinkParams struct {
	Title                     string         `json:"title"`
	Description               string         `json:"description"`
	Payload                   string         `json:"payload"`
	ProviderToken             string         `json:"provider_token,omitempty"`
	Currency                  string         `json:"currency"`
	Prices                    []LabeledPrice `json:"prices"`
	MaxTipAmount              int            `json:"max_tip_amount,omitempty"`
	SuggestedTipAmounts       []int          `json:"suggested_tip_amounts,omitempty"`
	ProviderData              string         `json:"provider_data,omitempty"`
	PhotoURL                  string         `json:"photo_url,omitempty"`
	PhotoSize                 int            `json:"photo_size,omitempty"`
	PhotoWidth                int            `json:"photo_width,omitempty"`
	PhotoHeight               int            `json:"photo_height,omitempty"`
	NeedName                  bool           `json:"need_name,omitempty"`
	NeedPhoneNumber           bool           `json:"need_phone_number,omitempty"`
	NeedEmail                 bool           `json:"need_email,omitempty"`
	NeedShippingAddress       bool           `json:"need_shipping_address,omitempty"`
	SendPhoneNumberToProvider bool           `json:"send_phone_number_to_provider,omitempty"`
	SendEmailToProvider       bool           `json:"send_email_to_provider,omitempty"`
	IsFlexible                bool           `json:"is_flexible,omitempty"`
}

https://core.telegram.org/bots/api#createinvoicelink

type CreateNewStickerSetParams

type CreateNewStickerSetParams struct {
	UserID          int64          `json:"user_id"`
	Name            string         `json:"name"`
	Title           string         `json:"title"`
	Stickers        []InputSticker `json:"stickers"`
	StickerType     string         `json:"sticker_type,omitempty"`
	NeedsRepainting bool           `json:"needs_repainting,omitempty"`
}

https://core.telegram.org/bots/api#createnewstickerset

type DeclineChatJoinRequestParams

type DeclineChatJoinRequestParams struct {
	ChatID interface{} `json:"chat_id"`
	UserID int64       `json:"user_id"`
}

https://core.telegram.org/bots/api#declinechatjoinrequest

type DeleteChatPhotoParams

type DeleteChatPhotoParams struct {
	ChatID interface{} `json:"chat_id"`
}

https://core.telegram.org/bots/api#deletechatphoto

type DeleteChatStickerSetParams

type DeleteChatStickerSetParams struct {
	ChatID interface{} `json:"chat_id"`
}

https://core.telegram.org/bots/api#deletechatstickerset

type DeleteForumTopicParams

type DeleteForumTopicParams struct {
	ChatID          interface{} `json:"chat_id"`
	MessageThreadID int         `json:"message_thread_id"`
}

https://core.telegram.org/bots/api#deleteforumtopic

type DeleteMessageParams

type DeleteMessageParams struct {
	ChatID    interface{} `json:"chat_id"`
	MessageID int64       `json:"message_id"`
}

https://core.telegram.org/bots/api#deletemessage

type DeleteMessagesParams

type DeleteMessagesParams struct {
	ChatID     interface{} `json:"chat_id"`
	MessageIDs []int       `json:"message_ids"`
}

https://core.telegram.org/bots/api#deletemessages

type DeleteMyCommandsParams

type DeleteMyCommandsParams struct {
	Scope        interface{} `json:"scope,omitempty"`
	LanguageCode string      `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#deletemycommands

type DeleteStickerFromSetParams

type DeleteStickerFromSetParams struct {
	Sticker string `json:"sticker"`
}

https://core.telegram.org/bots/api#deletestickerfromset

type DeleteWebhookParams

type DeleteWebhookParams struct {
	DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
}

https://core.telegram.org/bots/api#deletewebhook

type Dice

type Dice struct {
	Emoji string `json:"emoji"`
	Value int    `json:"value"`
}

https://core.telegram.org/bots/api#dice

type DirectMessagesTopic

type DirectMessagesTopic struct {
	ID int `json:"id"`
}

https://core.telegram.org/bots/api#directmessagestopic

type Document

type Document struct {
	FileID       string     `json:"file_id"`
	FileUniqueID string     `json:"file_unique_id"`
	Thumbnail    *PhotoSize `json:"thumbnail,omitempty"`
	FileName     string     `json:"file_name,omitempty"`
	MimeType     string     `json:"mime_type,omitempty"`
	FileSize     int64      `json:"file_size,omitempty"`
}

https://core.telegram.org/bots/api#document

type EditChatInviteLinkParams

type EditChatInviteLinkParams struct {
	ChatID             interface{} `json:"chat_id"`
	InviteLink         string      `json:"invite_link"`
	Name               string      `json:"name,omitempty"`
	ExpireDate         int64       `json:"expire_date,omitempty"`
	MemberLimit        int         `json:"member_limit,omitempty"`
	CreatesJoinRequest bool        `json:"creates_join_request,omitempty"`
}

https://core.telegram.org/bots/api#editchatinvitelink

type EditForumTopicParams

type EditForumTopicParams struct {
	ChatID            interface{} `json:"chat_id"`
	MessageThreadID   int         `json:"message_thread_id"`
	Name              string      `json:"name,omitempty"`
	IconCustomEmojiID string      `json:"icon_custom_emoji_id,omitempty"`
}

https://core.telegram.org/bots/api#editforumtopic

type EditGeneralForumTopicParams

type EditGeneralForumTopicParams struct {
	ChatID interface{} `json:"chat_id"`
	Name   string      `json:"name"`
}

https://core.telegram.org/bots/api#editgeneralforumtopic

type EditMessageCaptionParams

type EditMessageCaptionParams struct {
	BusinessConnectionID  string                `json:"business_connection_id,omitempty"`
	ChatID                interface{}           `json:"chat_id,omitempty"`
	MessageID             int                   `json:"message_id,omitempty"`
	InlineMessageID       string                `json:"inline_message_id,omitempty"`
	Caption               string                `json:"caption,omitempty"`
	ParseMode             string                `json:"parse_mode,omitempty"`
	CaptionEntities       []MessageEntity       `json:"caption_entities,omitempty"`
	ShowCaptionAboveMedia bool                  `json:"show_caption_above_media,omitempty"`
	ReplyMarkup           *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagecaption

type EditMessageChecklistParams

type EditMessageChecklistParams struct {
	BusinessConnectionID string                `json:"business_connection_id"`
	ChatID               int64                 `json:"chat_id"`
	MessageID            int                   `json:"message_id"`
	Checklist            InputChecklist        `json:"checklist"`
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagechecklist

type EditMessageLiveLocationParams

type EditMessageLiveLocationParams struct {
	BusinessConnectionID string                `json:"business_connection_id,omitempty"`
	ChatID               interface{}           `json:"chat_id,omitempty"`
	MessageID            int                   `json:"message_id,omitempty"`
	InlineMessageID      string                `json:"inline_message_id,omitempty"`
	Latitude             float64               `json:"latitude"`
	Longitude            float64               `json:"longitude"`
	LivePeriod           int                   `json:"live_period,omitempty"`
	HorizontalAccuracy   float64               `json:"horizontal_accuracy,omitempty"`
	Heading              int                   `json:"heading,omitempty"`
	ProximityAlertRadius int                   `json:"proximity_alert_radius,omitempty"`
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagelivelocation

type EditMessageMediaParams

type EditMessageMediaParams struct {
	BusinessConnectionID string                `json:"business_connection_id,omitempty"`
	ChatID               interface{}           `json:"chat_id,omitempty"`
	MessageID            int                   `json:"message_id,omitempty"`
	InlineMessageID      string                `json:"inline_message_id,omitempty"`
	Media                interface{}           `json:"media"`
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagemedia

type EditMessageReplyMarkupParams

type EditMessageReplyMarkupParams struct {
	BusinessConnectionID string                `json:"business_connection_id,omitempty"`
	ChatID               interface{}           `json:"chat_id,omitempty"`
	MessageID            int                   `json:"message_id,omitempty"`
	InlineMessageID      string                `json:"inline_message_id,omitempty"`
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagereplymarkup

type EditMessageTextParams

type EditMessageTextParams struct {
	ChatID                interface{}           `json:"chat_id,omitempty"`
	MessageID             int64                 `json:"message_id,omitempty"`
	InlineMessageID       string                `json:"inline_message_id,omitempty"`
	Text                  string                `json:"text"`
	ParseMode             string                `json:"parse_mode,omitempty"`
	Entities              []MessageEntity       `json:"entities,omitempty"`
	DisableWebPagePreview bool                  `json:"disable_web_page_preview,omitempty"`
	ReplyMarkup           *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagetext

type ExportChatInviteLinkParams

type ExportChatInviteLinkParams struct {
	ChatID interface{} `json:"chat_id"`
}

https://core.telegram.org/bots/api#exportchatinvitelink

type File

type File struct {
	FileID       string `json:"file_id"`
	FileUniqueID string `json:"file_unique_id"`
	FileSize     int64  `json:"file_size,omitempty"`
	FilePath     string `json:"file_path,omitempty"`
}

https://core.telegram.org/bots/api#file

type ForceReply

type ForceReply struct {
	ForceReply            bool   `json:"force_reply"`
	InputFieldPlaceholder string `json:"input_field_placeholder,omitempty"`
	Selective             bool   `json:"selective,omitempty"`
}

https://core.telegram.org/bots/api#forcereply

type ForumTopic

type ForumTopic struct {
	MessageThreadID   int    `json:"message_thread_id"`
	Name              string `json:"name"`
	IconColor         int    `json:"icon_color"`
	IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
}

https://core.telegram.org/bots/api#forumtopic

type ForwardMessageParams

type ForwardMessageParams struct {
	ChatID              interface{} `json:"chat_id"`
	MessageThreadID     int64       `json:"message_thread_id,omitempty"`
	FromChatID          interface{} `json:"from_chat_id"`
	DisableNotification bool        `json:"disable_notification,omitempty"`
	ProtectContent      bool        `json:"protect_content,omitempty"`
	MessageID           int64       `json:"message_id"`
}

https://core.telegram.org/bots/api#forwardmessage

type ForwardMessagesParams

type ForwardMessagesParams struct {
	ChatID                interface{} `json:"chat_id"`
	MessageThreadID       int         `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID int         `json:"direct_messages_topic_id,omitempty"`
	FromChatID            interface{} `json:"from_chat_id"`
	MessageIDs            []int       `json:"message_ids"`
	DisableNotification   bool        `json:"disable_notification,omitempty"`
	ProtectContent        bool        `json:"protect_content,omitempty"`
}

https://core.telegram.org/bots/api#forwardmessages

type Game

type Game struct {
	Title        string          `json:"title"`
	Description  string          `json:"description"`
	Photo        []PhotoSize     `json:"photo"`
	Text         string          `json:"text,omitempty"`
	TextEntities []MessageEntity `json:"text_entities,omitempty"`
	Animation    *Animation      `json:"animation,omitempty"`
}

https://core.telegram.org/bots/api#game

type GameHighScore

type GameHighScore struct {
	Position int  `json:"position"`
	User     User `json:"user"`
	Score    int  `json:"score"`
}

https://core.telegram.org/bots/api#gamehighscore

type GetChatMemberParams

type GetChatMemberParams struct {
	ChatID interface{} `json:"chat_id"`
	UserID int64       `json:"user_id"`
}

https://core.telegram.org/bots/api#getchatmember

type GetChatMenuButtonParams

type GetChatMenuButtonParams struct {
	ChatID int64 `json:"chat_id,omitempty"`
}

https://core.telegram.org/bots/api#getchatmenubutton

type GetCustomEmojiStickersParams

type GetCustomEmojiStickersParams struct {
	CustomEmojiIDs []string `json:"custom_emoji_ids"`
}

https://core.telegram.org/bots/api#getcustomemojistickers

type GetGameHighScoresParams

type GetGameHighScoresParams struct {
	UserID          int64  `json:"user_id"`
	ChatID          int64  `json:"chat_id,omitempty"`
	MessageID       int    `json:"message_id,omitempty"`
	InlineMessageID string `json:"inline_message_id,omitempty"`
}

https://core.telegram.org/bots/api#getgamehighscores

type GetMyCommandsParams

type GetMyCommandsParams struct {
	Scope        interface{} `json:"scope,omitempty"`
	LanguageCode string      `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#getmycommands

type GetMyDescriptionParams

type GetMyDescriptionParams struct {
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#getmydescription

type GetMyNameParams

type GetMyNameParams struct {
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#getmyname

type GetMyShortDescriptionParams

type GetMyShortDescriptionParams struct {
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#getmyshortdescription

type GetStickerSetParams

type GetStickerSetParams struct {
	Name string `json:"name"`
}

https://core.telegram.org/bots/api#getstickerset

type GetUpdatesParams

type GetUpdatesParams struct {
	Offset         int64    `json:"offset,omitempty"`
	Limit          int      `json:"limit,omitempty"`
	Timeout        int      `json:"timeout,omitempty"`
	AllowedUpdates []string `json:"allowed_updates,omitempty"`
}

https://core.telegram.org/bots/api#getupdates

type GetUserProfileAudiosParams

type GetUserProfileAudiosParams struct {
	UserID int64 `json:"user_id"`
	Offset int   `json:"offset,omitempty"`
	Limit  int   `json:"limit,omitempty"` // 1-100, default 100
}

https://core.telegram.org/bots/api#getuserprofileaudios

type GetUserProfilePhotosParams

type GetUserProfilePhotosParams struct {
	UserID int64 `json:"user_id"`
	Offset int   `json:"offset,omitempty"`
	Limit  int   `json:"limit,omitempty"`
}

https://core.telegram.org/bots/api#getuserprofilephotos

type HideGeneralForumTopicParams

type HideGeneralForumTopicParams struct {
	ChatID interface{} `json:"chat_id"`
}

https://core.telegram.org/bots/api#hidegeneralforumtopic

type InlineKeyboardButton

type InlineKeyboardButton struct {
	Text                         string                       `json:"text"`
	URL                          string                       `json:"url,omitempty"`
	CallbackData                 string                       `json:"callback_data,omitempty"`
	WebApp                       *WebAppInfo                  `json:"web_app,omitempty"`
	LoginURL                     *LoginURL                    `json:"login_url,omitempty"`
	SwitchInlineQuery            string                       `json:"switch_inline_query,omitempty"`
	SwitchInlineQueryCurrentChat string                       `json:"switch_inline_query_current_chat,omitempty"`
	SwitchInlineQueryChosenChat  *SwitchInlineQueryChosenChat `json:"switch_inline_query_chosen_chat,omitempty"`
	CopyText                     *CopyTextButton              `json:"copy_text,omitempty"`
	CallbackGame                 *CallbackGame                `json:"callback_game,omitempty"`
	Pay                          bool                         `json:"pay,omitempty"`
	IconCustomEmojiID            string                       `json:"icon_custom_emoji_id,omitempty"`
	Style                        string                       `json:"style,omitempty"`
}

https://core.telegram.org/bots/api#inlinekeyboardbutton

type InlineKeyboardMarkup

type InlineKeyboardMarkup struct {
	InlineKeyboard [][]InlineKeyboardButton `json:"inline_keyboard"`
}

https://core.telegram.org/bots/api#inlinekeyboardmarkup

type InlineQuery

type InlineQuery struct {
	ID       string    `json:"id"`
	From     User      `json:"from"`
	Query    string    `json:"query"`
	Offset   string    `json:"offset"`
	ChatType string    `json:"chat_type,omitempty"`
	Location *Location `json:"location,omitempty"`
}

https://core.telegram.org/bots/api#inlinequery

type InlineQueryResultArticle

type InlineQueryResultArticle struct {
	Type                string                `json:"type"`
	ID                  string                `json:"id"`
	Title               string                `json:"title"`
	InputMessageContent interface{}           `json:"input_message_content"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	URL                 string                `json:"url,omitempty"`
	HideURL             bool                  `json:"hide_url,omitempty"`
	Description         string                `json:"description,omitempty"`
	ThumbnailURL        string                `json:"thumbnail_url,omitempty"`
	ThumbnailWidth      int                   `json:"thumbnail_width,omitempty"`
	ThumbnailHeight     int                   `json:"thumbnail_height,omitempty"`
}

https://core.telegram.org/bots/api#inlinequeryresultarticle

type InlineQueryResultCachedPhoto

type InlineQueryResultCachedPhoto struct {
	Type                  string                `json:"type"`
	ID                    string                `json:"id"`
	PhotoFileID           string                `json:"photo_file_id"`
	Title                 string                `json:"title,omitempty"`
	Description           string                `json:"description,omitempty"`
	Caption               string                `json:"caption,omitempty"`
	ParseMode             string                `json:"parse_mode,omitempty"`
	CaptionEntities       []MessageEntity       `json:"caption_entities,omitempty"`
	ShowCaptionAboveMedia bool                  `json:"show_caption_above_media,omitempty"`
	ReplyMarkup           *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	InputMessageContent   interface{}           `json:"input_message_content,omitempty"`
}

https://core.telegram.org/bots/api#inlinequeryresultcachedphoto

type InlineQueryResultPhoto

type InlineQueryResultPhoto struct {
	Type                  string                `json:"type"`
	ID                    string                `json:"id"`
	PhotoURL              string                `json:"photo_url"`
	ThumbnailURL          string                `json:"thumbnail_url"`
	PhotoWidth            int                   `json:"photo_width,omitempty"`
	PhotoHeight           int                   `json:"photo_height,omitempty"`
	Title                 string                `json:"title,omitempty"`
	Description           string                `json:"description,omitempty"`
	Caption               string                `json:"caption,omitempty"`
	ParseMode             string                `json:"parse_mode,omitempty"`
	CaptionEntities       []MessageEntity       `json:"caption_entities,omitempty"`
	ShowCaptionAboveMedia bool                  `json:"show_caption_above_media,omitempty"`
	ReplyMarkup           *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	InputMessageContent   interface{}           `json:"input_message_content,omitempty"`
}

https://core.telegram.org/bots/api#inlinequeryresultphoto

type InputChecklist

type InputChecklist struct {
	Title                    string               `json:"title"`
	TitleParseMode           string               `json:"title_parse_mode,omitempty"`
	TitleEntities            []MessageEntity      `json:"title_entities,omitempty"`
	Tasks                    []InputChecklistTask `json:"tasks"`
	OthersCanAddTasks        bool                 `json:"others_can_add_tasks,omitempty"`
	OthersCanMarkTasksAsDone bool                 `json:"others_can_mark_tasks_as_done,omitempty"`
}

https://core.telegram.org/bots/api#inputchecklist

type InputChecklistTask

type InputChecklistTask struct {
	Text          string          `json:"text"`
	TextParseMode string          `json:"text_parse_mode,omitempty"`
	TextEntities  []MessageEntity `json:"text_entities,omitempty"`
}

https://core.telegram.org/bots/api#inputchecklisttask

type InputFile added in v0.2.3

type InputFile struct {
	FileID string
	URL    string
	Data   []byte
	Name   string
}

InputFile represents a file to send to Telegram. Exactly one of FileID, URL, or Data should be set:

  • FileID: re-use an already-uploaded Telegram file by its file_id.
  • URL: let Telegram fetch the file from a public HTTP/HTTPS URL.
  • Data: upload raw bytes via multipart/form-data (Name is used as the filename).

https://core.telegram.org/bots/api#inputfile

func (InputFile) MarshalJSON added in v0.2.3

func (f InputFile) MarshalJSON() ([]byte, error)

MarshalJSON serialises InputFile as a plain JSON string (file_id or URL). When Data is set the caller must use a multipart/form-data request instead; this method is only a fallback for the JSON path and returns an empty string in that case so that misconfiguration is obvious.

type InputMediaAnimation

type InputMediaAnimation struct {
	Type                  string          `json:"type"`
	Media                 string          `json:"media"`
	Thumbnail             interface{}     `json:"thumbnail,omitempty"`
	Caption               string          `json:"caption,omitempty"`
	ParseMode             string          `json:"parse_mode,omitempty"`
	CaptionEntities       []MessageEntity `json:"caption_entities,omitempty"`
	ShowCaptionAboveMedia bool            `json:"show_caption_above_media,omitempty"`
	Width                 int             `json:"width,omitempty"`
	Height                int             `json:"height,omitempty"`
	Duration              int             `json:"duration,omitempty"`
	HasSpoiler            bool            `json:"has_spoiler,omitempty"`
}

https://core.telegram.org/bots/api#inputmediaanimation

type InputMediaAudio

type InputMediaAudio struct {
	Type            string          `json:"type"`
	Media           string          `json:"media"`
	Thumbnail       interface{}     `json:"thumbnail,omitempty"`
	Caption         string          `json:"caption,omitempty"`
	ParseMode       string          `json:"parse_mode,omitempty"`
	CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
	Duration        int             `json:"duration,omitempty"`
	Performer       string          `json:"performer,omitempty"`
	Title           string          `json:"title,omitempty"`
}

https://core.telegram.org/bots/api#inputmediaaudio

type InputMediaDocument

type InputMediaDocument struct {
	Type                        string          `json:"type"`
	Media                       string          `json:"media"`
	Thumbnail                   interface{}     `json:"thumbnail,omitempty"`
	Caption                     string          `json:"caption,omitempty"`
	ParseMode                   string          `json:"parse_mode,omitempty"`
	CaptionEntities             []MessageEntity `json:"caption_entities,omitempty"`
	DisableContentTypeDetection bool            `json:"disable_content_type_detection,omitempty"`
}

https://core.telegram.org/bots/api#inputmediadocument

type InputMediaPhoto

type InputMediaPhoto struct {
	Type                  string          `json:"type"`
	Media                 string          `json:"media"`
	Caption               string          `json:"caption,omitempty"`
	ParseMode             string          `json:"parse_mode,omitempty"`
	CaptionEntities       []MessageEntity `json:"caption_entities,omitempty"`
	ShowCaptionAboveMedia bool            `json:"show_caption_above_media,omitempty"`
	HasSpoiler            bool            `json:"has_spoiler,omitempty"`
}

https://core.telegram.org/bots/api#inputmediaphoto

type InputMediaVideo

type InputMediaVideo struct {
	Type                  string          `json:"type"`
	Media                 string          `json:"media"`
	Thumbnail             interface{}     `json:"thumbnail,omitempty"`
	Caption               string          `json:"caption,omitempty"`
	ParseMode             string          `json:"parse_mode,omitempty"`
	CaptionEntities       []MessageEntity `json:"caption_entities,omitempty"`
	ShowCaptionAboveMedia bool            `json:"show_caption_above_media,omitempty"`
	Width                 int             `json:"width,omitempty"`
	Height                int             `json:"height,omitempty"`
	Duration              int             `json:"duration,omitempty"`
	SupportsStreaming     bool            `json:"supports_streaming,omitempty"`
	HasSpoiler            bool            `json:"has_spoiler,omitempty"`
}

https://core.telegram.org/bots/api#inputmediavideo

type InputPaidMediaPhoto

type InputPaidMediaPhoto struct {
	Type  string `json:"type"`
	Media string `json:"media"`
}

https://core.telegram.org/bots/api#inputpaidmediaphoto

type InputPaidMediaVideo

type InputPaidMediaVideo struct {
	Type      string      `json:"type"`
	Media     string      `json:"media"`
	Thumbnail interface{} `json:"thumbnail,omitempty"`
	Width     int         `json:"width,omitempty"`
	Height    int         `json:"height,omitempty"`
	Duration  int         `json:"duration,omitempty"`
}

https://core.telegram.org/bots/api#inputpaidmediavideo

type InputPollOption

type InputPollOption struct {
	Text          string          `json:"text"`
	TextParseMode string          `json:"text_parse_mode,omitempty"`
	TextEntities  []MessageEntity `json:"text_entities,omitempty"`
}

https://core.telegram.org/bots/api#inputpolloption

type InputProfilePhotoAnimated

type InputProfilePhotoAnimated struct {
	Type      string      `json:"type"`  // "animated"
	Video     interface{} `json:"video"` // Video file to upload
	Thumbnail interface{} `json:"thumbnail,omitempty"`
}

https://core.telegram.org/bots/api#inputprofilephotoanimated

type InputProfilePhotoStatic

type InputProfilePhotoStatic struct {
	Type  string      `json:"type"`  // "static"
	Photo interface{} `json:"photo"` // File to upload
}

https://core.telegram.org/bots/api#inputprofilephotostatic

type InputSticker

type InputSticker struct {
	Sticker      interface{}   `json:"sticker"`
	Format       string        `json:"format"`
	EmojiList    []string      `json:"emoji_list"`
	MaskPosition *MaskPosition `json:"mask_position,omitempty"`
	Keywords     []string      `json:"keywords,omitempty"`
}

https://core.telegram.org/bots/api#inputsticker

type InputTextMessageContent

type InputTextMessageContent struct {
	MessageText        string          `json:"message_text"`
	ParseMode          string          `json:"parse_mode,omitempty"`
	Entities           []MessageEntity `json:"entities,omitempty"`
	LinkPreviewOptions interface{}     `json:"link_preview_options,omitempty"`
}

https://core.telegram.org/bots/api#inputtextmessagecontent

type Invoice

type Invoice struct {
	Title          string `json:"title"`
	Description    string `json:"description"`
	StartParameter string `json:"start_parameter"`
	Currency       string `json:"currency"`
	TotalAmount    int    `json:"total_amount"`
}

https://core.telegram.org/bots/api#invoice

type KeyboardButton

type KeyboardButton struct {
	Text              string                      `json:"text"`
	RequestUsers      *KeyboardButtonRequestUsers `json:"request_users,omitempty"`
	RequestChat       *KeyboardButtonRequestChat  `json:"request_chat,omitempty"`
	RequestContact    bool                        `json:"request_contact,omitempty"`
	RequestLocation   bool                        `json:"request_location,omitempty"`
	RequestPoll       *KeyboardButtonPollType     `json:"request_poll,omitempty"`
	WebApp            *WebAppInfo                 `json:"web_app,omitempty"`
	IconCustomEmojiID string                      `json:"icon_custom_emoji_id,omitempty"`
	Style             string                      `json:"style,omitempty"`
}

https://core.telegram.org/bots/api#keyboardbutton

type KeyboardButtonPollType

type KeyboardButtonPollType struct {
	Type string `json:"type,omitempty"`
}

https://core.telegram.org/bots/api#keyboardbuttonpolltype

type KeyboardButtonRequestChat

type KeyboardButtonRequestChat struct {
	RequestID               int                      `json:"request_id"`
	ChatIsChannel           bool                     `json:"chat_is_channel"`
	ChatIsForum             bool                     `json:"chat_is_forum,omitempty"`
	ChatHasUsername         bool                     `json:"chat_has_username,omitempty"`
	ChatIsCreated           bool                     `json:"chat_is_created,omitempty"`
	UserAdministratorRights *ChatAdministratorRights `json:"user_administrator_rights,omitempty"`
	BotAdministratorRights  *ChatAdministratorRights `json:"bot_administrator_rights,omitempty"`
	BotIsMember             bool                     `json:"bot_is_member,omitempty"`
}

https://core.telegram.org/bots/api#keyboardbuttonrequestchat

type KeyboardButtonRequestUsers

type KeyboardButtonRequestUsers struct {
	RequestID     int  `json:"request_id"`
	UserIsBot     bool `json:"user_is_bot,omitempty"`
	UserIsPremium bool `json:"user_is_premium,omitempty"`
	MaxQuantity   int  `json:"max_quantity,omitempty"`
}

https://core.telegram.org/bots/api#keyboardbuttonrequestusers

type LabeledPrice

type LabeledPrice struct {
	Label  string `json:"label"`
	Amount int    `json:"amount"`
}

https://core.telegram.org/bots/api#labeledprice

type Location

type Location struct {
	Longitude            float64 `json:"longitude"`
	Latitude             float64 `json:"latitude"`
	HorizontalAccuracy   float64 `json:"horizontal_accuracy,omitempty"`
	LivePeriod           int     `json:"live_period,omitempty"`
	Heading              int     `json:"heading,omitempty"`
	ProximityAlertRadius int     `json:"proximity_alert_radius,omitempty"`
}

https://core.telegram.org/bots/api#location

type LoginURL

type LoginURL struct {
	URL                string `json:"url"`
	ForwardText        string `json:"forward_text,omitempty"`
	BotUsername        string `json:"bot_username,omitempty"`
	RequestWriteAccess bool   `json:"request_write_access,omitempty"`
}

https://core.telegram.org/bots/api#loginurl

type MaskPosition

type MaskPosition struct {
	Point  string  `json:"point"`
	XShift float64 `json:"x_shift"`
	YShift float64 `json:"y_shift"`
	Scale  float64 `json:"scale"`
}

https://core.telegram.org/bots/api#maskposition

type MenuButton struct {
	Type   string      `json:"type"`
	Text   string      `json:"text,omitempty"`
	WebApp *WebAppInfo `json:"web_app,omitempty"`
}

https://core.telegram.org/bots/api#menubutton

type Message

type Message struct {
	MessageID                     int64                          `json:"message_id"`
	MessageThreadID               int64                          `json:"message_thread_id,omitempty"`
	From                          *User                          `json:"from,omitempty"`
	SenderChat                    *Chat                          `json:"sender_chat,omitempty"`
	Date                          int64                          `json:"date"`
	Chat                          Chat                           `json:"chat"`
	ForwardFrom                   *User                          `json:"forward_from,omitempty"`
	ForwardFromChat               *Chat                          `json:"forward_from_chat,omitempty"`
	ForwardFromMessageID          int64                          `json:"forward_from_message_id,omitempty"`
	ForwardSignature              string                         `json:"forward_signature,omitempty"`
	ForwardSenderName             string                         `json:"forward_sender_name,omitempty"`
	ForwardDate                   int64                          `json:"forward_date,omitempty"`
	IsTopicMessage                bool                           `json:"is_topic_message,omitempty"`
	IsAutomaticForward            bool                           `json:"is_automatic_forward,omitempty"`
	ReplyToMessage                *Message                       `json:"reply_to_message,omitempty"`
	ViaBot                        *User                          `json:"via_bot,omitempty"`
	EditDate                      int64                          `json:"edit_date,omitempty"`
	HasProtectedContent           bool                           `json:"has_protected_content,omitempty"`
	MediaGroupID                  string                         `json:"media_group_id,omitempty"`
	AuthorSignature               string                         `json:"author_signature,omitempty"`
	Text                          string                         `json:"text,omitempty"`
	Entities                      []MessageEntity                `json:"entities,omitempty"`
	Animation                     *Animation                     `json:"animation,omitempty"`
	Audio                         *Audio                         `json:"audio,omitempty"`
	Document                      *Document                      `json:"document,omitempty"`
	Photo                         []PhotoSize                    `json:"photo,omitempty"`
	Sticker                       *Sticker                       `json:"sticker,omitempty"`
	Video                         *Video                         `json:"video,omitempty"`
	VideoNote                     *VideoNote                     `json:"video_note,omitempty"`
	Voice                         *Voice                         `json:"voice,omitempty"`
	Caption                       string                         `json:"caption,omitempty"`
	CaptionEntities               []MessageEntity                `json:"caption_entities,omitempty"`
	Contact                       *Contact                       `json:"contact,omitempty"`
	Location                      *Location                      `json:"location,omitempty"`
	NewChatMembers                []User                         `json:"new_chat_members,omitempty"`
	LeftChatMember                *User                          `json:"left_chat_member,omitempty"`
	NewChatTitle                  string                         `json:"new_chat_title,omitempty"`
	NewChatPhoto                  []PhotoSize                    `json:"new_chat_photo,omitempty"`
	DeleteChatPhoto               bool                           `json:"delete_chat_photo,omitempty"`
	GroupChatCreated              bool                           `json:"group_chat_created,omitempty"`
	SupergroupChatCreated         bool                           `json:"supergroup_chat_created,omitempty"`
	ChannelChatCreated            bool                           `json:"channel_chat_created,omitempty"`
	MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed,omitempty"`
	MigrateToChatID               int64                          `json:"migrate_to_chat_id,omitempty"`
	MigrateFromChatID             int64                          `json:"migrate_from_chat_id,omitempty"`
	PinnedMessage                 *Message                       `json:"pinned_message,omitempty"`
	ReplyMarkup                   *InlineKeyboardMarkup          `json:"reply_markup,omitempty"`

	ReplyToChecklistTaskID int64                `json:"reply_to_checklist_task_id,omitempty"`
	DirectMessagesTopic    *DirectMessagesTopic `json:"direct_messages_topic,omitempty"`

	GiftUpgradeSent *GiftInfo `json:"gift_upgrade_sent,omitempty"`

	ChatOwnerLeft    *ChatOwnerLeft    `json:"chat_owner_left,omitempty"`
	ChatOwnerChanged *ChatOwnerChanged `json:"chat_owner_changed,omitempty"`
}

https://core.telegram.org/bots/api#message

type MessageAutoDeleteTimerChanged

type MessageAutoDeleteTimerChanged struct {
	MessageAutoDeleteTime int `json:"message_auto_delete_time"`
}

https://core.telegram.org/bots/api#messageautodeletetimerchanged

type MessageEntity

type MessageEntity struct {
	Type          string `json:"type"`
	Offset        int    `json:"offset"`
	Length        int    `json:"length"`
	URL           string `json:"url,omitempty"`
	User          *User  `json:"user,omitempty"`
	Language      string `json:"language,omitempty"`
	CustomEmojiID string `json:"custom_emoji_id,omitempty"`
}

https://core.telegram.org/bots/api#messageentity

type MessageID

type MessageID struct {
	MessageID int64 `json:"message_id"`
}

https://core.telegram.org/bots/api#messageid

type OrderInfo

type OrderInfo struct {
	Name            string           `json:"name,omitempty"`
	PhoneNumber     string           `json:"phone_number,omitempty"`
	Email           string           `json:"email,omitempty"`
	ShippingAddress *ShippingAddress `json:"shipping_address,omitempty"`
}

https://core.telegram.org/bots/api#orderinfo

type PaidMediaInfo

type PaidMediaInfo struct {
	StarCount int           `json:"star_count"`
	PaidMedia []interface{} `json:"paid_media"`
}

https://core.telegram.org/bots/api#paidmediainfo

type PhotoSize

type PhotoSize struct {
	FileID       string `json:"file_id"`
	FileUniqueID string `json:"file_unique_id"`
	Width        int    `json:"width"`
	Height       int    `json:"height"`
	FileSize     int64  `json:"file_size,omitempty"`
}

https://core.telegram.org/bots/api#photosize

type PinChatMessageParams

type PinChatMessageParams struct {
	ChatID              interface{} `json:"chat_id"`
	MessageID           int64       `json:"message_id"`
	DisableNotification bool        `json:"disable_notification,omitempty"`
}

https://core.telegram.org/bots/api#pinchatmessage

type Poll

type Poll struct {
	ID                    string          `json:"id"`
	Question              string          `json:"question"`
	QuestionEntities      []MessageEntity `json:"question_entities,omitempty"`
	Options               []PollOption    `json:"options"`
	TotalVoterCount       int             `json:"total_voter_count"`
	IsClosed              bool            `json:"is_closed"`
	IsAnonymous           bool            `json:"is_anonymous"`
	Type                  string          `json:"type"`
	AllowsMultipleAnswers bool            `json:"allows_multiple_answers"`
	CorrectOptionID       *int            `json:"correct_option_id,omitempty"`
	Explanation           string          `json:"explanation,omitempty"`
	ExplanationEntities   []MessageEntity `json:"explanation_entities,omitempty"`
	OpenPeriod            int             `json:"open_period,omitempty"`
	CloseDate             int64           `json:"close_date,omitempty"`
}

https://core.telegram.org/bots/api#poll

type PollAnswer

type PollAnswer struct {
	PollID    string `json:"poll_id"`
	VoterChat *Chat  `json:"voter_chat,omitempty"`
	User      *User  `json:"user,omitempty"`
	OptionIDs []int  `json:"option_ids"`
}

https://core.telegram.org/bots/api#pollanswer

type PollOption

type PollOption struct {
	Text       string `json:"text"`
	VoterCount int    `json:"voter_count"`
}

https://core.telegram.org/bots/api#polloption

type PreCheckoutQuery

type PreCheckoutQuery struct {
	ID               string     `json:"id"`
	From             User       `json:"from"`
	Currency         string     `json:"currency"`
	TotalAmount      int        `json:"total_amount"`
	InvoicePayload   string     `json:"invoice_payload"`
	ShippingOptionID string     `json:"shipping_option_id,omitempty"`
	OrderInfo        *OrderInfo `json:"order_info,omitempty"`
}

https://core.telegram.org/bots/api#precheckoutquery

type PromoteChatMemberParams

type PromoteChatMemberParams struct {
	ChatID              interface{} `json:"chat_id"`
	UserID              int64       `json:"user_id"`
	IsAnonymous         bool        `json:"is_anonymous,omitempty"`
	CanManageChat       bool        `json:"can_manage_chat,omitempty"`
	CanDeleteMessages   bool        `json:"can_delete_messages,omitempty"`
	CanManageVideoChats bool        `json:"can_manage_video_chats,omitempty"`
	CanRestrictMembers  bool        `json:"can_restrict_members,omitempty"`
	CanPromoteMembers   bool        `json:"can_promote_members,omitempty"`
	CanChangeInfo       bool        `json:"can_change_info,omitempty"`
	CanInviteUsers      bool        `json:"can_invite_users,omitempty"`
	CanPostMessages     bool        `json:"can_post_messages,omitempty"`
	CanEditMessages     bool        `json:"can_edit_messages,omitempty"`
	CanPinMessages      bool        `json:"can_pin_messages,omitempty"`
	CanManageTopics     bool        `json:"can_manage_topics,omitempty"`
}

https://core.telegram.org/bots/api#promotechatmember

type ReactionType

type ReactionType struct {
	Type          string `json:"type"`
	Emoji         string `json:"emoji,omitempty"`
	CustomEmojiID string `json:"custom_emoji_id,omitempty"`
}

https://core.telegram.org/bots/api#reactiontype

type RefundedPayment

type RefundedPayment struct {
	Currency                string `json:"currency"`
	TotalAmount             int    `json:"total_amount"`
	InvoicePayload          string `json:"invoice_payload"`
	TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
	ProviderPaymentChargeID string `json:"provider_payment_charge_id,omitempty"`
}

https://core.telegram.org/bots/api#refundedpayment

type ReopenForumTopicParams

type ReopenForumTopicParams struct {
	ChatID          interface{} `json:"chat_id"`
	MessageThreadID int         `json:"message_thread_id"`
}

https://core.telegram.org/bots/api#reopenforumtopic

type ReopenGeneralForumTopicParams

type ReopenGeneralForumTopicParams struct {
	ChatID interface{} `json:"chat_id"`
}

https://core.telegram.org/bots/api#reopengeneralforumtopic

type ReplyKeyboardMarkup

type ReplyKeyboardMarkup struct {
	Keyboard              [][]KeyboardButton `json:"keyboard"`
	IsPersistent          bool               `json:"is_persistent,omitempty"`
	ResizeKeyboard        bool               `json:"resize_keyboard,omitempty"`
	OneTimeKeyboard       bool               `json:"one_time_keyboard,omitempty"`
	InputFieldPlaceholder string             `json:"input_field_placeholder,omitempty"`
	Selective             bool               `json:"selective,omitempty"`
}

https://core.telegram.org/bots/api#replykeyboardmarkup

type ReplyKeyboardRemove

type ReplyKeyboardRemove struct {
	RemoveKeyboard bool `json:"remove_keyboard"`
	Selective      bool `json:"selective,omitempty"`
}

https://core.telegram.org/bots/api#replykeyboardremove

type ReplyParameters

type ReplyParameters struct {
	MessageID                int             `json:"message_id"`
	ChatID                   interface{}     `json:"chat_id,omitempty"`
	AllowSendingWithoutReply bool            `json:"allow_sending_without_reply,omitempty"`
	Quote                    string          `json:"quote,omitempty"`
	QuoteParseMode           string          `json:"quote_parse_mode,omitempty"`
	QuoteEntities            []MessageEntity `json:"quote_entities,omitempty"`
	QuotePosition            int             `json:"quote_position,omitempty"`
}

https://core.telegram.org/bots/api#replyparameters

type Response

type Response struct {
	Ok          bool        `json:"ok"`
	Result      interface{} `json:"result,omitempty"`
	ErrorCode   int         `json:"error_code,omitempty"`
	Description string      `json:"description,omitempty"`
}

https://core.telegram.org/bots/api#making-requests

type RestrictChatMemberParams

type RestrictChatMemberParams struct {
	ChatID                        interface{}     `json:"chat_id"`
	UserID                        int64           `json:"user_id"`
	Permissions                   ChatPermissions `json:"permissions"`
	UseIndependentChatPermissions bool            `json:"use_independent_chat_permissions,omitempty"`
	UntilDate                     int64           `json:"until_date,omitempty"`
}

https://core.telegram.org/bots/api#restrictchatmember

type RevokeChatInviteLinkParams

type RevokeChatInviteLinkParams struct {
	ChatID     interface{} `json:"chat_id"`
	InviteLink string      `json:"invite_link"`
}

https://core.telegram.org/bots/api#revokechatinvitelink

type SendAnimationParams

type SendAnimationParams struct {
	BusinessConnectionID    string                   `json:"business_connection_id,omitempty"`
	ChatID                  interface{}              `json:"chat_id"`
	MessageThreadID         int                      `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID   int                      `json:"direct_messages_topic_id,omitempty"`
	Animation               interface{}              `json:"animation"`
	Duration                int                      `json:"duration,omitempty"`
	Width                   int                      `json:"width,omitempty"`
	Height                  int                      `json:"height,omitempty"`
	Thumbnail               interface{}              `json:"thumbnail,omitempty"`
	Caption                 string                   `json:"caption,omitempty"`
	ParseMode               string                   `json:"parse_mode,omitempty"`
	CaptionEntities         []MessageEntity          `json:"caption_entities,omitempty"`
	ShowCaptionAboveMedia   bool                     `json:"show_caption_above_media,omitempty"`
	HasSpoiler              bool                     `json:"has_spoiler,omitempty"`
	DisableNotification     bool                     `json:"disable_notification,omitempty"`
	ProtectContent          bool                     `json:"protect_content,omitempty"`
	AllowPaidBroadcast      bool                     `json:"allow_paid_broadcast,omitempty"`
	MessageEffectID         string                   `json:"message_effect_id,omitempty"`
	SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
	ReplyParameters         *ReplyParameters         `json:"reply_parameters,omitempty"`
	ReplyMarkup             interface{}              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendanimation

type SendAudioParams

type SendAudioParams struct {
	ChatID                   interface{}     `json:"chat_id"`
	MessageThreadID          int64           `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID    int64           `json:"direct_messages_topic_id,omitempty"`
	Audio                    interface{}     `json:"audio"`
	Caption                  string          `json:"caption,omitempty"`
	ParseMode                string          `json:"parse_mode,omitempty"`
	CaptionEntities          []MessageEntity `json:"caption_entities,omitempty"`
	Duration                 int             `json:"duration,omitempty"`
	Performer                string          `json:"performer,omitempty"`
	Title                    string          `json:"title,omitempty"`
	Thumbnail                interface{}     `json:"thumbnail,omitempty"`
	DisableNotification      bool            `json:"disable_notification,omitempty"`
	ProtectContent           bool            `json:"protect_content,omitempty"`
	ReplyToMessageID         int64           `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool            `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              interface{}     `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendaudio

type SendChecklistParams

type SendChecklistParams struct {
	BusinessConnectionID string                `json:"business_connection_id"`
	ChatID               int64                 `json:"chat_id"`
	Checklist            InputChecklist        `json:"checklist"`
	DisableNotification  bool                  `json:"disable_notification,omitempty"`
	ProtectContent       bool                  `json:"protect_content,omitempty"`
	MessageEffectID      string                `json:"message_effect_id,omitempty"`
	ReplyParameters      *ReplyParameters      `json:"reply_parameters,omitempty"`
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendchecklist

type SendContactParams

type SendContactParams struct {
	ChatID                   interface{} `json:"chat_id"`
	MessageThreadID          int64       `json:"message_thread_id,omitempty"`
	PhoneNumber              string      `json:"phone_number"`
	FirstName                string      `json:"first_name"`
	LastName                 string      `json:"last_name,omitempty"`
	VCard                    string      `json:"vcard,omitempty"`
	DisableNotification      bool        `json:"disable_notification,omitempty"`
	ProtectContent           bool        `json:"protect_content,omitempty"`
	ReplyToMessageID         int64       `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool        `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              interface{} `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendcontact

type SendDiceParams

type SendDiceParams struct {
	BusinessConnectionID    string                   `json:"business_connection_id,omitempty"`
	ChatID                  interface{}              `json:"chat_id"`
	MessageThreadID         int                      `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID   int                      `json:"direct_messages_topic_id,omitempty"`
	Emoji                   string                   `json:"emoji,omitempty"`
	DisableNotification     bool                     `json:"disable_notification,omitempty"`
	ProtectContent          bool                     `json:"protect_content,omitempty"`
	AllowPaidBroadcast      bool                     `json:"allow_paid_broadcast,omitempty"`
	MessageEffectID         string                   `json:"message_effect_id,omitempty"`
	SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
	ReplyParameters         *ReplyParameters         `json:"reply_parameters,omitempty"`
	ReplyMarkup             interface{}              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#senddice

type SendDocumentParams

type SendDocumentParams struct {
	ChatID                      interface{}     `json:"chat_id"`
	MessageThreadID             int64           `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID       int64           `json:"direct_messages_topic_id,omitempty"`
	Document                    interface{}     `json:"document"`
	Thumbnail                   interface{}     `json:"thumbnail,omitempty"`
	Caption                     string          `json:"caption,omitempty"`
	ParseMode                   string          `json:"parse_mode,omitempty"`
	CaptionEntities             []MessageEntity `json:"caption_entities,omitempty"`
	DisableContentTypeDetection bool            `json:"disable_content_type_detection,omitempty"`
	DisableNotification         bool            `json:"disable_notification,omitempty"`
	ProtectContent              bool            `json:"protect_content,omitempty"`
	ReplyToMessageID            int64           `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply    bool            `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup                 interface{}     `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#senddocument

type SendGameParams

type SendGameParams struct {
	BusinessConnectionID string                `json:"business_connection_id,omitempty"`
	ChatID               int64                 `json:"chat_id"`
	MessageThreadID      int                   `json:"message_thread_id,omitempty"`
	GameShortName        string                `json:"game_short_name"`
	DisableNotification  bool                  `json:"disable_notification,omitempty"`
	ProtectContent       bool                  `json:"protect_content,omitempty"`
	MessageEffectID      string                `json:"message_effect_id,omitempty"`
	ReplyParameters      *ReplyParameters      `json:"reply_parameters,omitempty"`
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendgame

type SendInvoiceParams

type SendInvoiceParams struct {
	ChatID                    interface{}           `json:"chat_id"`
	MessageThreadID           int                   `json:"message_thread_id,omitempty"`
	Title                     string                `json:"title"`
	Description               string                `json:"description"`
	Payload                   string                `json:"payload"`
	ProviderToken             string                `json:"provider_token,omitempty"`
	Currency                  string                `json:"currency"`
	Prices                    []LabeledPrice        `json:"prices"`
	MaxTipAmount              int                   `json:"max_tip_amount,omitempty"`
	SuggestedTipAmounts       []int                 `json:"suggested_tip_amounts,omitempty"`
	StartParameter            string                `json:"start_parameter,omitempty"`
	ProviderData              string                `json:"provider_data,omitempty"`
	PhotoURL                  string                `json:"photo_url,omitempty"`
	PhotoSize                 int                   `json:"photo_size,omitempty"`
	PhotoWidth                int                   `json:"photo_width,omitempty"`
	PhotoHeight               int                   `json:"photo_height,omitempty"`
	NeedName                  bool                  `json:"need_name,omitempty"`
	NeedPhoneNumber           bool                  `json:"need_phone_number,omitempty"`
	NeedEmail                 bool                  `json:"need_email,omitempty"`
	NeedShippingAddress       bool                  `json:"need_shipping_address,omitempty"`
	SendPhoneNumberToProvider bool                  `json:"send_phone_number_to_provider,omitempty"`
	SendEmailToProvider       bool                  `json:"send_email_to_provider,omitempty"`
	IsFlexible                bool                  `json:"is_flexible,omitempty"`
	DisableNotification       bool                  `json:"disable_notification,omitempty"`
	ProtectContent            bool                  `json:"protect_content,omitempty"`
	ReplyParameters           *ReplyParameters      `json:"reply_parameters,omitempty"`
	ReplyMarkup               *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendinvoice

type SendLocationParams

type SendLocationParams struct {
	ChatID                   interface{} `json:"chat_id"`
	MessageThreadID          int64       `json:"message_thread_id,omitempty"`
	Latitude                 float64     `json:"latitude"`
	Longitude                float64     `json:"longitude"`
	HorizontalAccuracy       float64     `json:"horizontal_accuracy,omitempty"`
	LivePeriod               int         `json:"live_period,omitempty"`
	Heading                  int         `json:"heading,omitempty"`
	ProximityAlertRadius     int         `json:"proximity_alert_radius,omitempty"`
	DisableNotification      bool        `json:"disable_notification,omitempty"`
	ProtectContent           bool        `json:"protect_content,omitempty"`
	ReplyToMessageID         int64       `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool        `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              interface{} `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendlocation

type SendMediaGroupParams

type SendMediaGroupParams struct {
	BusinessConnectionID  string           `json:"business_connection_id,omitempty"`
	ChatID                interface{}      `json:"chat_id"`
	MessageThreadID       int              `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID int              `json:"direct_messages_topic_id,omitempty"`
	Media                 []interface{}    `json:"media"`
	DisableNotification   bool             `json:"disable_notification,omitempty"`
	ProtectContent        bool             `json:"protect_content,omitempty"`
	AllowPaidBroadcast    bool             `json:"allow_paid_broadcast,omitempty"`
	MessageEffectID       string           `json:"message_effect_id,omitempty"`
	ReplyParameters       *ReplyParameters `json:"reply_parameters,omitempty"`
}

https://core.telegram.org/bots/api#sendmediagroup

type SendMessageDraftParams

type SendMessageDraftParams struct {
	ChatID          int64           `json:"chat_id"`
	MessageThreadID int             `json:"message_thread_id,omitempty"`
	DraftID         int             `json:"draft_id"`
	Text            string          `json:"text"`
	ParseMode       string          `json:"parse_mode,omitempty"`
	Entities        []MessageEntity `json:"entities,omitempty"`
}

https://core.telegram.org/bots/api#sendmessagedraft

type SendMessageParams

type SendMessageParams struct {
	ChatID                   interface{}     `json:"chat_id"`
	MessageThreadID          int64           `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID    int64           `json:"direct_messages_topic_id,omitempty"`
	Text                     string          `json:"text"`
	ParseMode                string          `json:"parse_mode,omitempty"`
	Entities                 []MessageEntity `json:"entities,omitempty"`
	DisableWebPagePreview    bool            `json:"disable_web_page_preview,omitempty"`
	DisableNotification      bool            `json:"disable_notification,omitempty"`
	ProtectContent           bool            `json:"protect_content,omitempty"`
	ReplyToMessageID         int64           `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool            `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              interface{}     `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendmessage

type SendPaidMediaParams

type SendPaidMediaParams struct {
	BusinessConnectionID    string                   `json:"business_connection_id,omitempty"`
	ChatID                  interface{}              `json:"chat_id"`
	MessageThreadID         int                      `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID   int                      `json:"direct_messages_topic_id,omitempty"`
	StarCount               int                      `json:"star_count"`
	Media                   []interface{}            `json:"media"`
	Payload                 string                   `json:"payload,omitempty"`
	Caption                 string                   `json:"caption,omitempty"`
	ParseMode               string                   `json:"parse_mode,omitempty"`
	CaptionEntities         []MessageEntity          `json:"caption_entities,omitempty"`
	ShowCaptionAboveMedia   bool                     `json:"show_caption_above_media,omitempty"`
	DisableNotification     bool                     `json:"disable_notification,omitempty"`
	ProtectContent          bool                     `json:"protect_content,omitempty"`
	AllowPaidBroadcast      bool                     `json:"allow_paid_broadcast,omitempty"`
	SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
	ReplyParameters         *ReplyParameters         `json:"reply_parameters,omitempty"`
	ReplyMarkup             interface{}              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendpaidmedia

type SendPhotoParams

type SendPhotoParams struct {
	ChatID                   interface{}     `json:"chat_id"`
	MessageThreadID          int64           `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID    int64           `json:"direct_messages_topic_id,omitempty"`
	Photo                    interface{}     `json:"photo"`
	Caption                  string          `json:"caption,omitempty"`
	ParseMode                string          `json:"parse_mode,omitempty"`
	CaptionEntities          []MessageEntity `json:"caption_entities,omitempty"`
	HasSpoiler               bool            `json:"has_spoiler,omitempty"`
	DisableNotification      bool            `json:"disable_notification,omitempty"`
	ProtectContent           bool            `json:"protect_content,omitempty"`
	ReplyToMessageID         int64           `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool            `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              interface{}     `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendphoto

type SendPollParams

type SendPollParams struct {
	ChatID                   interface{}     `json:"chat_id"`
	MessageThreadID          int64           `json:"message_thread_id,omitempty"`
	Question                 string          `json:"question"`
	Options                  []string        `json:"options"`
	IsAnonymous              bool            `json:"is_anonymous,omitempty"`
	Type                     string          `json:"type,omitempty"`
	AllowsMultipleAnswers    bool            `json:"allows_multiple_answers,omitempty"`
	CorrectOptionID          int             `json:"correct_option_id,omitempty"`
	Explanation              string          `json:"explanation,omitempty"`
	ExplanationParseMode     string          `json:"explanation_parse_mode,omitempty"`
	ExplanationEntities      []MessageEntity `json:"explanation_entities,omitempty"`
	OpenPeriod               int             `json:"open_period,omitempty"`
	CloseDate                int64           `json:"close_date,omitempty"`
	IsClosed                 bool            `json:"is_closed,omitempty"`
	DisableNotification      bool            `json:"disable_notification,omitempty"`
	ProtectContent           bool            `json:"protect_content,omitempty"`
	ReplyToMessageID         int64           `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool            `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              interface{}     `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendpoll

type SendStickerParams

type SendStickerParams struct {
	BusinessConnectionID    string                   `json:"business_connection_id,omitempty"`
	ChatID                  interface{}              `json:"chat_id"`
	MessageThreadID         int                      `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID   int                      `json:"direct_messages_topic_id,omitempty"`
	Sticker                 interface{}              `json:"sticker"`
	Emoji                   string                   `json:"emoji,omitempty"`
	DisableNotification     bool                     `json:"disable_notification,omitempty"`
	ProtectContent          bool                     `json:"protect_content,omitempty"`
	AllowPaidBroadcast      bool                     `json:"allow_paid_broadcast,omitempty"`
	MessageEffectID         string                   `json:"message_effect_id,omitempty"`
	SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
	ReplyParameters         *ReplyParameters         `json:"reply_parameters,omitempty"`
	ReplyMarkup             interface{}              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendsticker

type SendVenueParams

type SendVenueParams struct {
	BusinessConnectionID    string                   `json:"business_connection_id,omitempty"`
	ChatID                  interface{}              `json:"chat_id"`
	MessageThreadID         int                      `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID   int                      `json:"direct_messages_topic_id,omitempty"`
	Latitude                float64                  `json:"latitude"`
	Longitude               float64                  `json:"longitude"`
	Title                   string                   `json:"title"`
	Address                 string                   `json:"address"`
	FoursquareID            string                   `json:"foursquare_id,omitempty"`
	FoursquareType          string                   `json:"foursquare_type,omitempty"`
	GooglePlaceID           string                   `json:"google_place_id,omitempty"`
	GooglePlaceType         string                   `json:"google_place_type,omitempty"`
	DisableNotification     bool                     `json:"disable_notification,omitempty"`
	ProtectContent          bool                     `json:"protect_content,omitempty"`
	AllowPaidBroadcast      bool                     `json:"allow_paid_broadcast,omitempty"`
	MessageEffectID         string                   `json:"message_effect_id,omitempty"`
	SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
	ReplyParameters         *ReplyParameters         `json:"reply_parameters,omitempty"`
	ReplyMarkup             interface{}              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendvenue

type SendVideoNoteParams

type SendVideoNoteParams struct {
	BusinessConnectionID    string                   `json:"business_connection_id,omitempty"`
	ChatID                  interface{}              `json:"chat_id"`
	MessageThreadID         int                      `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID   int                      `json:"direct_messages_topic_id,omitempty"`
	VideoNote               interface{}              `json:"video_note"`
	Duration                int                      `json:"duration,omitempty"`
	Length                  int                      `json:"length,omitempty"`
	Thumbnail               interface{}              `json:"thumbnail,omitempty"`
	DisableNotification     bool                     `json:"disable_notification,omitempty"`
	ProtectContent          bool                     `json:"protect_content,omitempty"`
	AllowPaidBroadcast      bool                     `json:"allow_paid_broadcast,omitempty"`
	MessageEffectID         string                   `json:"message_effect_id,omitempty"`
	SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
	ReplyParameters         *ReplyParameters         `json:"reply_parameters,omitempty"`
	ReplyMarkup             interface{}              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendvideonote

type SendVideoParams

type SendVideoParams struct {
	ChatID                   interface{}     `json:"chat_id"`
	MessageThreadID          int64           `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID    int64           `json:"direct_messages_topic_id,omitempty"`
	Video                    interface{}     `json:"video"`
	Duration                 int             `json:"duration,omitempty"`
	Width                    int             `json:"width,omitempty"`
	Height                   int             `json:"height,omitempty"`
	Thumbnail                interface{}     `json:"thumbnail,omitempty"`
	Caption                  string          `json:"caption,omitempty"`
	ParseMode                string          `json:"parse_mode,omitempty"`
	CaptionEntities          []MessageEntity `json:"caption_entities,omitempty"`
	HasSpoiler               bool            `json:"has_spoiler,omitempty"`
	SupportsStreaming        bool            `json:"supports_streaming,omitempty"`
	DisableNotification      bool            `json:"disable_notification,omitempty"`
	ProtectContent           bool            `json:"protect_content,omitempty"`
	ReplyToMessageID         int64           `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool            `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              interface{}     `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendvideo

type SendVoiceParams

type SendVoiceParams struct {
	BusinessConnectionID    string                   `json:"business_connection_id,omitempty"`
	ChatID                  interface{}              `json:"chat_id"`
	MessageThreadID         int                      `json:"message_thread_id,omitempty"`
	DirectMessagesTopicID   int                      `json:"direct_messages_topic_id,omitempty"`
	Voice                   interface{}              `json:"voice"`
	Caption                 string                   `json:"caption,omitempty"`
	ParseMode               string                   `json:"parse_mode,omitempty"`
	CaptionEntities         []MessageEntity          `json:"caption_entities,omitempty"`
	Duration                int                      `json:"duration,omitempty"`
	DisableNotification     bool                     `json:"disable_notification,omitempty"`
	ProtectContent          bool                     `json:"protect_content,omitempty"`
	AllowPaidBroadcast      bool                     `json:"allow_paid_broadcast,omitempty"`
	MessageEffectID         string                   `json:"message_effect_id,omitempty"`
	SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
	ReplyParameters         *ReplyParameters         `json:"reply_parameters,omitempty"`
	ReplyMarkup             interface{}              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendvoice

type SetChatAdministratorCustomTitleParams

type SetChatAdministratorCustomTitleParams struct {
	ChatID      interface{} `json:"chat_id"`
	UserID      int64       `json:"user_id"`
	CustomTitle string      `json:"custom_title"`
}

https://core.telegram.org/bots/api#setchatadministratorcustomtitle

type SetChatDescriptionParams

type SetChatDescriptionParams struct {
	ChatID      interface{} `json:"chat_id"`
	Description string      `json:"description,omitempty"`
}

https://core.telegram.org/bots/api#setchatdescription

type SetChatMenuButtonParams

type SetChatMenuButtonParams struct {
	ChatID     int64       `json:"chat_id,omitempty"`
	MenuButton interface{} `json:"menu_button,omitempty"`
}

https://core.telegram.org/bots/api#setchatmenubutton

type SetChatPermissionsParams

type SetChatPermissionsParams struct {
	ChatID                        interface{}     `json:"chat_id"`
	Permissions                   ChatPermissions `json:"permissions"`
	UseIndependentChatPermissions bool            `json:"use_independent_chat_permissions,omitempty"`
}

https://core.telegram.org/bots/api#setchatpermissions

type SetChatPhotoParams

type SetChatPhotoParams struct {
	ChatID interface{} `json:"chat_id"`
	Photo  interface{} `json:"photo"`
}

https://core.telegram.org/bots/api#setchatphoto

type SetChatStickerSetParams

type SetChatStickerSetParams struct {
	ChatID         interface{} `json:"chat_id"`
	StickerSetName string      `json:"sticker_set_name"`
}

https://core.telegram.org/bots/api#setchatstickerset

type SetChatTitleParams

type SetChatTitleParams struct {
	ChatID interface{} `json:"chat_id"`
	Title  string      `json:"title"`
}

https://core.telegram.org/bots/api#setchattitle

type SetGameScoreParams

type SetGameScoreParams struct {
	UserID             int64  `json:"user_id"`
	Score              int    `json:"score"`
	Force              bool   `json:"force,omitempty"`
	DisableEditMessage bool   `json:"disable_edit_message,omitempty"`
	ChatID             int64  `json:"chat_id,omitempty"`
	MessageID          int    `json:"message_id,omitempty"`
	InlineMessageID    string `json:"inline_message_id,omitempty"`
}

https://core.telegram.org/bots/api#setgamescore

type SetMessageReactionParams

type SetMessageReactionParams struct {
	ChatID    interface{}   `json:"chat_id"`
	MessageID int           `json:"message_id"`
	Reaction  []interface{} `json:"reaction,omitempty"`
	IsBig     bool          `json:"is_big,omitempty"`
}

https://core.telegram.org/bots/api#setmessagereaction

type SetMyCommandsParams

type SetMyCommandsParams struct {
	Commands     []BotCommand `json:"commands"`
	Scope        interface{}  `json:"scope,omitempty"`
	LanguageCode string       `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#setmycommands

type SetMyDescriptionParams

type SetMyDescriptionParams struct {
	Description  string `json:"description,omitempty"`
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#setmydescription

type SetMyNameParams

type SetMyNameParams struct {
	Name         string `json:"name,omitempty"`
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#setmyname

type SetMyShortDescriptionParams

type SetMyShortDescriptionParams struct {
	ShortDescription string `json:"short_description,omitempty"`
	LanguageCode     string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#setmyshortdescription

type SetStickerPositionInSetParams

type SetStickerPositionInSetParams struct {
	Sticker  string `json:"sticker"`
	Position int    `json:"position"`
}

https://core.telegram.org/bots/api#setstickerpositioninset

type SetStickerSetThumbnailParams

type SetStickerSetThumbnailParams struct {
	Name      string      `json:"name"`
	UserID    int64       `json:"user_id"`
	Thumbnail interface{} `json:"thumbnail,omitempty"`
	Format    string      `json:"format"`
}

https://core.telegram.org/bots/api#setstickersetthumbnail

type SetWebhookParams

type SetWebhookParams struct {
	URL                string      `json:"url"`
	Certificate        interface{} `json:"certificate,omitempty"`
	IPAddress          string      `json:"ip_address,omitempty"`
	MaxConnections     int         `json:"max_connections,omitempty"`
	AllowedUpdates     []string    `json:"allowed_updates,omitempty"`
	DropPendingUpdates bool        `json:"drop_pending_updates,omitempty"`
	SecretToken        string      `json:"secret_token,omitempty"`
}

https://core.telegram.org/bots/api#setwebhook

type ShippingAddress

type ShippingAddress struct {
	CountryCode string `json:"country_code"`
	State       string `json:"state"`
	City        string `json:"city"`
	StreetLine1 string `json:"street_line1"`
	StreetLine2 string `json:"street_line2"`
	PostCode    string `json:"post_code"`
}

https://core.telegram.org/bots/api#shippingaddress

type ShippingOption

type ShippingOption struct {
	ID     string         `json:"id"`
	Title  string         `json:"title"`
	Prices []LabeledPrice `json:"prices"`
}

https://core.telegram.org/bots/api#shippingoption

type ShippingQuery

type ShippingQuery struct {
	ID              string          `json:"id"`
	From            User            `json:"from"`
	InvoicePayload  string          `json:"invoice_payload"`
	ShippingAddress ShippingAddress `json:"shipping_address"`
}

https://core.telegram.org/bots/api#shippingquery

type Sticker

type Sticker struct {
	FileID           string        `json:"file_id"`
	FileUniqueID     string        `json:"file_unique_id"`
	Type             string        `json:"type"`
	Width            int           `json:"width"`
	Height           int           `json:"height"`
	IsAnimated       bool          `json:"is_animated"`
	IsVideo          bool          `json:"is_video"`
	Thumbnail        *PhotoSize    `json:"thumbnail,omitempty"`
	Emoji            string        `json:"emoji,omitempty"`
	SetName          string        `json:"set_name,omitempty"`
	PremiumAnimation *File         `json:"premium_animation,omitempty"`
	MaskPosition     *MaskPosition `json:"mask_position,omitempty"`
	CustomEmojiID    string        `json:"custom_emoji_id,omitempty"`
	FileSize         int64         `json:"file_size,omitempty"`
}

https://core.telegram.org/bots/api#sticker

type StickerSet

type StickerSet struct {
	Name        string     `json:"name"`
	Title       string     `json:"title"`
	StickerType string     `json:"sticker_type"`
	Stickers    []Sticker  `json:"stickers"`
	Thumbnail   *PhotoSize `json:"thumbnail,omitempty"`
}

https://core.telegram.org/bots/api#stickerset

type StopMessageLiveLocationParams

type StopMessageLiveLocationParams struct {
	BusinessConnectionID string                `json:"business_connection_id,omitempty"`
	ChatID               interface{}           `json:"chat_id,omitempty"`
	MessageID            int                   `json:"message_id,omitempty"`
	InlineMessageID      string                `json:"inline_message_id,omitempty"`
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#stopmessagelivelocation

type StopPollParams

type StopPollParams struct {
	BusinessConnectionID string                `json:"business_connection_id,omitempty"`
	ChatID               interface{}           `json:"chat_id"`
	MessageID            int                   `json:"message_id"`
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#stoppoll

type SuccessfulPayment

type SuccessfulPayment struct {
	Currency                string     `json:"currency"`
	TotalAmount             int        `json:"total_amount"`
	InvoicePayload          string     `json:"invoice_payload"`
	ShippingOptionID        string     `json:"shipping_option_id,omitempty"`
	OrderInfo               *OrderInfo `json:"order_info,omitempty"`
	TelegramPaymentChargeID string     `json:"telegram_payment_charge_id"`
	ProviderPaymentChargeID string     `json:"provider_payment_charge_id"`
}

https://core.telegram.org/bots/api#successfulpayment

type SuggestedPostInfo

type SuggestedPostInfo struct {
	State    string              `json:"state"`
	Price    *SuggestedPostPrice `json:"price,omitempty"`
	SendDate int64               `json:"send_date,omitempty"`
}

https://core.telegram.org/bots/api#suggestedpostinfo

type SuggestedPostParameters

type SuggestedPostParameters struct {
	Price    *SuggestedPostPrice `json:"price,omitempty"`
	SendDate int64               `json:"send_date,omitempty"`
}

https://core.telegram.org/bots/api#suggestedpostparameters

type SuggestedPostPrice

type SuggestedPostPrice struct {
	StarCount int `json:"star_count"`
}

https://core.telegram.org/bots/api#suggestedpostprice

type SwitchInlineQueryChosenChat added in v0.2.2

type SwitchInlineQueryChosenChat struct {
	Query             string `json:"query,omitempty"`
	AllowUserChats    bool   `json:"allow_user_chats,omitempty"`
	AllowBotChats     bool   `json:"allow_bot_chats,omitempty"`
	AllowGroupChats   bool   `json:"allow_group_chats,omitempty"`
	AllowChannelChats bool   `json:"allow_channel_chats,omitempty"`
}

https://core.telegram.org/bots/api#switchinlinequerychosenchat

type UnbanChatMemberParams

type UnbanChatMemberParams struct {
	ChatID       interface{} `json:"chat_id"`
	UserID       int64       `json:"user_id"`
	OnlyIfBanned bool        `json:"only_if_banned,omitempty"`
}

https://core.telegram.org/bots/api#unbanchatmember

type UnbanChatSenderChatParams

type UnbanChatSenderChatParams struct {
	ChatID       interface{} `json:"chat_id"`
	SenderChatID int64       `json:"sender_chat_id"`
}

https://core.telegram.org/bots/api#unbanchatsenderchat

type UnhideGeneralForumTopicParams

type UnhideGeneralForumTopicParams struct {
	ChatID interface{} `json:"chat_id"`
}

https://core.telegram.org/bots/api#unhidegeneralforumtopic

type UnpinAllForumTopicMessagesParams

type UnpinAllForumTopicMessagesParams struct {
	ChatID          interface{} `json:"chat_id"`
	MessageThreadID int         `json:"message_thread_id"`
}

https://core.telegram.org/bots/api#unpinallforumtopicmessages

type UnpinChatMessageParams

type UnpinChatMessageParams struct {
	ChatID    interface{} `json:"chat_id"`
	MessageID int64       `json:"message_id,omitempty"`
}

https://core.telegram.org/bots/api#unpinchatmessage

type Update

type Update struct {
	UpdateID           int64               `json:"update_id"`
	Message            *Message            `json:"message,omitempty"`
	EditedMessage      *Message            `json:"edited_message,omitempty"`
	ChannelPost        *Message            `json:"channel_post,omitempty"`
	EditedChannelPost  *Message            `json:"edited_channel_post,omitempty"`
	CallbackQuery      *CallbackQuery      `json:"callback_query,omitempty"`
	InlineQuery        *InlineQuery        `json:"inline_query,omitempty"`
	ChosenInlineResult *ChosenInlineResult `json:"chosen_inline_result,omitempty"`
}

https://core.telegram.org/bots/api#update

type UploadStickerFileParams

type UploadStickerFileParams struct {
	UserID        int64       `json:"user_id"`
	Sticker       interface{} `json:"sticker"`
	StickerFormat string      `json:"sticker_format"`
}

https://core.telegram.org/bots/api#uploadstickerfile

type User

type User struct {
	ID                        int64  `json:"id"`
	IsBot                     bool   `json:"is_bot"`
	FirstName                 string `json:"first_name"`
	LastName                  string `json:"last_name,omitempty"`
	Username                  string `json:"username,omitempty"`
	LanguageCode              string `json:"language_code,omitempty"`
	CanJoinGroups             bool   `json:"can_join_groups,omitempty"`
	CanReadAllGroupMessages   bool   `json:"can_read_all_group_messages,omitempty"`
	SupportsInlineQueries     bool   `json:"supports_inline_queries,omitempty"`
	HasTopicsEnabled          bool   `json:"has_topics_enabled,omitempty"`
	AllowsUsersToCreateTopics bool   `json:"allows_users_to_create_topics,omitempty"`
}

https://core.telegram.org/bots/api#user

type UserProfileAudios

type UserProfileAudios struct {
	TotalCount int     `json:"total_count"`
	Audios     []Audio `json:"audios"`
}

https://core.telegram.org/bots/api#userprofileaudios

type UserProfilePhotos

type UserProfilePhotos struct {
	TotalCount int           `json:"total_count"`
	Photos     [][]PhotoSize `json:"photos"`
}

https://core.telegram.org/bots/api#userprofilephotos

type Venue

type Venue struct {
	Location        Location `json:"location"`
	Title           string   `json:"title"`
	Address         string   `json:"address"`
	FoursquareID    string   `json:"foursquare_id,omitempty"`
	FoursquareType  string   `json:"foursquare_type,omitempty"`
	GooglePlaceID   string   `json:"google_place_id,omitempty"`
	GooglePlaceType string   `json:"google_place_type,omitempty"`
}

https://core.telegram.org/bots/api#venue

type Video

type Video struct {
	FileID       string         `json:"file_id"`
	FileUniqueID string         `json:"file_unique_id"`
	Width        int            `json:"width"`
	Height       int            `json:"height"`
	Duration     int            `json:"duration"`
	Thumbnail    *PhotoSize     `json:"thumbnail,omitempty"`
	FileName     string         `json:"file_name,omitempty"`
	MimeType     string         `json:"mime_type,omitempty"`
	FileSize     int64          `json:"file_size,omitempty"`
	Qualities    []VideoQuality `json:"qualities,omitempty"`
}

https://core.telegram.org/bots/api#video

type VideoNote

type VideoNote struct {
	FileID       string     `json:"file_id"`
	FileUniqueID string     `json:"file_unique_id"`
	Length       int        `json:"length"`
	Duration     int        `json:"duration"`
	Thumbnail    *PhotoSize `json:"thumbnail,omitempty"`
	FileSize     int64      `json:"file_size,omitempty"`
}

https://core.telegram.org/bots/api#videonote

type VideoQuality

type VideoQuality struct {
	FileID       string     `json:"file_id"`
	FileUniqueID string     `json:"file_unique_id"`
	Width        int        `json:"width"`
	Height       int        `json:"height"`
	FileSize     int64      `json:"file_size,omitempty"`
	Thumbnail    *PhotoSize `json:"thumbnail,omitempty"`
}

https://core.telegram.org/bots/api#videoquality

type Voice

type Voice struct {
	FileID       string `json:"file_id"`
	FileUniqueID string `json:"file_unique_id"`
	Duration     int    `json:"duration"`
	MimeType     string `json:"mime_type,omitempty"`
	FileSize     int64  `json:"file_size,omitempty"`
}

https://core.telegram.org/bots/api#voice

type WebAppInfo

type WebAppInfo struct {
	URL string `json:"url"`
}

https://core.telegram.org/bots/api#webappinfo

type WebhookInfo

type WebhookInfo struct {
	URL                          string   `json:"url"`
	HasCustomCertificate         bool     `json:"has_custom_certificate"`
	PendingUpdateCount           int      `json:"pending_update_count"`
	IPAddress                    string   `json:"ip_address,omitempty"`
	LastErrorDate                int64    `json:"last_error_date,omitempty"`
	LastErrorMessage             string   `json:"last_error_message,omitempty"`
	LastSynchronizationErrorDate int64    `json:"last_synchronization_error_date,omitempty"`
	MaxConnections               int      `json:"max_connections,omitempty"`
	AllowedUpdates               []string `json:"allowed_updates,omitempty"`
}

https://core.telegram.org/bots/api#webhookinfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL