gobot

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

README

GoBot

A golang BotAPI wrapper.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddStickerToSetParams

type AddStickerToSetParams struct {
	UserId       int           `json:"user_id"`                 // User identifier of sticker set owner
	Name         string        `json:"name"`                    // Sticker set name
	PngSticker   interface{}   `json:"png_sticker,omitempty"`   // Optional. PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
	TgsSticker   interface{}   `json:"tgs_sticker,omitempty"`   // Optional. TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements
	Emojis       string        `json:"emojis"`                  // One or more emoji corresponding to the sticker
	MaskPosition *MaskPosition `json:"mask_position,omitempty"` // Optional. A JSON-serialized object for position where the mask should be placed on faces
}

type Animation

type Animation struct {
	FileId       string     `json:"file_id"`             // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string     `json:"file_unique_id"`      // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	Width        int        `json:"width"`               // Video width as defined by sender
	Height       int        `json:"height"`              // Video height as defined by sender
	Duration     int        `json:"duration"`            // Duration of the video in seconds as defined by sender
	Thumb        *PhotoSize `json:"thumb,omitempty"`     // Optional. Animation thumbnail as defined by sender
	FileName     string     `json:"file_name,omitempty"` // Optional. Original animation filename as defined by sender
	MimeType     string     `json:"mime_type,omitempty"` // Optional. MIME type of the file as defined by sender
	FileSize     int        `json:"file_size,omitempty"` // Optional. File size
}

type AnswerCallbackQueryParams

type AnswerCallbackQueryParams struct {
	CallbackQueryId string `json:"callback_query_id"`    // Unique identifier for the query to be answered
	Text            string `json:"text,omitempty"`       // Optional. Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters
	ShowAlert       bool   `json:"show_alert,omitempty"` // Optional. If true, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.
	Url             string `json:"url,omitempty"`        // Optional. URL that will be opened by the user's client. If you have created a Game and accepted the conditions via @Botfather, specify the URL that opens your game — note that this will only work if the query comes from a callback_game button.Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter.
	CacheTime       int    `json:"cache_time,omitempty"` // Optional. The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0.
}

func NewAnswerCallbackQuery

func NewAnswerCallbackQuery(callbackQueryId string, text string, showAlert bool) AnswerCallbackQueryParams

type AnswerInlineQueryParams

type AnswerInlineQueryParams struct {
	InlineQueryId     string        `json:"inline_query_id"`               // Unique identifier for the answered query
	Results           []interface{} `json:"results"`                       // A JSON-serialized array of results for the inline query
	CacheTime         int           `json:"cache_time,omitempty"`          // Optional. The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
	IsPersonal        bool          `json:"is_personal,omitempty"`         // Optional. Pass True, if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query
	NextOffset        string        `json:"next_offset,omitempty"`         // Optional. Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.
	SwitchPmText      string        `json:"switch_pm_text,omitempty"`      // Optional. If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter
	SwitchPmParameter string        `json:"switch_pm_parameter,omitempty"` // Optional. Deep-linking parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an oauth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.
}

type AnswerPreCheckoutQueryParams

type AnswerPreCheckoutQueryParams struct {
	PreCheckoutQueryId string `json:"pre_checkout_query_id"`   // Unique identifier for the query to be answered
	Ok                 bool   `json:"ok"`                      // Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.
	ErrorMessage       string `json:"error_message,omitempty"` // Optional. Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.
}

type AnswerShippingQueryParams

type AnswerShippingQueryParams struct {
	ShippingQueryId string            `json:"shipping_query_id"`          // Unique identifier for the query to be answered
	Ok              bool              `json:"ok"`                         // Specify True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)
	ShippingOptions []*ShippingOption `json:"shipping_options,omitempty"` // Optional. Required if ok is True. A JSON-serialized array of available shipping options.
	ErrorMessage    string            `json:"error_message,omitempty"`    // Optional. Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user.
}

type Audio

type Audio struct {
	FileId       string     `json:"file_id"`             // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string     `json:"file_unique_id"`      // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	Duration     int        `json:"duration"`            // Duration of the audio in seconds as defined by sender
	Performer    string     `json:"performer,omitempty"` // Optional. Performer of the audio as defined by sender or by audio tags
	Title        string     `json:"title,omitempty"`     // Optional. Title of the audio as defined by sender or by audio tags
	FileName     string     `json:"file_name,omitempty"` // Optional. Original filename as defined by sender
	MimeType     string     `json:"mime_type,omitempty"` // Optional. MIME type of the file as defined by sender
	FileSize     int        `json:"file_size,omitempty"` // Optional. File size
	Thumb        *PhotoSize `json:"thumb,omitempty"`     // Optional. Thumbnail of the album cover to which the music file belongs
}

type BanChatMemberParams

type BanChatMemberParams struct {
	ChatId         interface{} `json:"chat_id"`                   // Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)
	UserId         int         `json:"user_id"`                   // Unique identifier of the target user
	UntilDate      int         `json:"until_date,omitempty"`      // Optional. Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.
	RevokeMessages bool        `json:"revoke_messages,omitempty"` // Optional. Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able to see messages in the group that were sent before the user was removed. Always True for supergroups and channels.
}

type Body

type Body struct {
	Ok          bool                `json:"ok"`
	Description string              `json:"description,omitempty"`
	ErrorCode   int                 `json:"error_code,omitempty"`
	Result      json.RawMessage     `json:"result,omitempty"`
	Parameters  *ResponseParameters `json:"parameters,omitempty"`
}

type BotCommand

type BotCommand struct {
	Command     string `json:"command"`     // Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores.
	Description string `json:"description"` // Description of the command, 3-256 characters.
}

type BotCommandScopeAllChatAdministrators

type BotCommandScopeAllChatAdministrators struct {
	Type string `json:"type"` // Scope type, must be all_chat_administrators
}

type BotCommandScopeAllGroupChats

type BotCommandScopeAllGroupChats struct {
	Type string `json:"type"` // Scope type, must be all_group_chats
}

type BotCommandScopeAllPrivateChats

type BotCommandScopeAllPrivateChats struct {
	Type string `json:"type"` // Scope type, must be all_private_chats
}

type BotCommandScopeChat

type BotCommandScopeChat struct {
	Type   string      `json:"type"`    // Scope type, must be chat
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
}

type BotCommandScopeChatAdministrators

type BotCommandScopeChatAdministrators struct {
	Type   string      `json:"type"`    // Scope type, must be chat_administrators
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
}

type BotCommandScopeChatMember

type BotCommandScopeChatMember struct {
	Type   string      `json:"type"`    // Scope type, must be chat_member
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
	UserId int         `json:"user_id"` // Unique identifier of the target user
}

type BotCommandScopeDefault

type BotCommandScopeDefault struct {
	Type string `json:"type"` // Scope type, must be default
}

type CallbackGame

type CallbackGame struct {
}

type CallbackQuery

type CallbackQuery struct {
	Id              string   `json:"id"`                          // Unique identifier for this query
	From            *User    `json:"from"`                        // Sender
	Message         *Message `json:"message,omitempty"`           // Optional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old
	InlineMessageId string   `json:"inline_message_id,omitempty"` // Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
	ChatInstance    string   `json:"chat_instance"`               // Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
	Data            string   `json:"data,omitempty"`              // Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
	GameShortName   string   `json:"game_short_name,omitempty"`   // Optional. Short name of a Game to be returned, serves as the unique identifier for the game
}

func (*CallbackQuery) NewAnswerCallbackQuery

func (callbackQuery *CallbackQuery) NewAnswerCallbackQuery(text string, showAlert bool) AnswerCallbackQueryParams

type Chat

type Chat struct {
	Id                    int              `json:"id"`                                 // Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
	Type                  string           `json:"type"`                               // Type of chat, can be either "private", "group", "supergroup" or "channel"
	Title                 string           `json:"title,omitempty"`                    // Optional. Title, for supergroups, channels and group chats
	Username              string           `json:"username,omitempty"`                 // Optional. Username, for private chats, supergroups and channels if available
	FirstName             string           `json:"first_name,omitempty"`               // Optional. First name of the other party in a private chat
	LastName              string           `json:"last_name,omitempty"`                // Optional. Last name of the other party in a private chat
	Photo                 *ChatPhoto       `json:"photo,omitempty"`                    // Optional. Chat photo. Returned only in getChat.
	Bio                   string           `json:"bio,omitempty"`                      // Optional. Bio of the other party in a private chat. Returned only in getChat.
	Description           string           `json:"description,omitempty"`              // Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.
	InviteLink            string           `json:"invite_link,omitempty"`              // Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat.
	PinnedMessage         *Message         `json:"pinned_message,omitempty"`           // Optional. The most recent pinned message (by sending date). Returned only in getChat.
	Permissions           *ChatPermissions `json:"permissions,omitempty"`              // Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.
	SlowModeDelay         int              `json:"slow_mode_delay,omitempty"`          // Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user. Returned only in getChat.
	MessageAutoDeleteTime int              `json:"message_auto_delete_time,omitempty"` // Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.
	StickerSetName        string           `json:"sticker_set_name,omitempty"`         // Optional. For supergroups, name of group sticker set. Returned only in getChat.
	CanSetStickerSet      bool             `json:"can_set_sticker_set,omitempty"`      // Optional. True, if the bot can change the group sticker set. Returned only in getChat.
	LinkedChatId          int              `json:"linked_chat_id,omitempty"`           // Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat.
	Location              *ChatLocation    `json:"location,omitempty"`                 // Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.
}
type ChatInviteLink struct {
	InviteLink  string `json:"invite_link"`            // The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "…".
	Creator     *User  `json:"creator"`                // Creator of the link
	IsPrimary   bool   `json:"is_primary"`             // True, if the link is primary
	IsRevoked   bool   `json:"is_revoked"`             // True, if the link is revoked
	ExpireDate  int    `json:"expire_date,omitempty"`  // Optional. Point in time (Unix timestamp) when the link will expire or has been expired
	MemberLimit int    `json:"member_limit,omitempty"` // Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
}

type ChatLocation

type ChatLocation struct {
	Location *Location `json:"location"` // The location to which the supergroup is connected. Can't be a live location.
	Address  string    `json:"address"`  // Location address; 1-64 characters, as defined by the chat owner
}

type ChatMemberAdministrator

type ChatMemberAdministrator struct {
	Status              string `json:"status"`                 // The member's status in the chat, always "administrator"
	User                *User  `json:"user"`                   // Information about the user
	CanBeEdited         bool   `json:"can_be_edited"`          // True, if the bot is allowed to edit administrator privileges of that user
	CustomTitle         string `json:"custom_title"`           // Custom title for this user
	IsAnonymous         bool   `json:"is_anonymous"`           // True, if the user's presence in the chat is hidden
	CanManageChat       bool   `json:"can_manage_chat"`        // True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege
	CanPostMessages     bool   `json:"can_post_messages"`      // True, if the administrator can post in the channel; channels only
	CanEditMessages     bool   `json:"can_edit_messages"`      // True, if the administrator can edit messages of other users and can pin messages; channels only
	CanDeleteMessages   bool   `json:"can_delete_messages"`    // True, if the administrator can delete messages of other users
	CanManageVoiceChats bool   `json:"can_manage_voice_chats"` // True, if the administrator can manage voice chats
	CanRestrictMembers  bool   `json:"can_restrict_members"`   // True, if the administrator can restrict, ban or unban chat members
	CanPromoteMembers   bool   `json:"can_promote_members"`    // True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)
	CanChangeInfo       bool   `json:"can_change_info"`        // True, if the user is allowed to change the chat title, photo and other settings
	CanInviteUsers      bool   `json:"can_invite_users"`       // True, if the user is allowed to invite new users to the chat
	CanPinMessages      bool   `json:"can_pin_messages"`       // True, if the user is allowed to pin messages; groups and supergroups only
}

type ChatMemberBanned

type ChatMemberBanned struct {
	Status    string `json:"status"`     // The member's status in the chat, always "kicked"
	User      *User  `json:"user"`       // Information about the user
	UntilDate int    `json:"until_date"` // Date when restrictions will be lifted for this user; unix time
}

type ChatMemberLeft

type ChatMemberLeft struct {
	Status string `json:"status"` // The member's status in the chat, always "left"
	User   *User  `json:"user"`   // Information about the user
}

type ChatMemberMember

type ChatMemberMember struct {
	Status string `json:"status"` // The member's status in the chat, always "member"
	User   *User  `json:"user"`   // Information about the user
}

type ChatMemberOwner

type ChatMemberOwner struct {
	Status      string `json:"status"`       // The member's status in the chat, always "creator"
	User        *User  `json:"user"`         // Information about the user
	CustomTitle string `json:"custom_title"` // Custom title for this user
	IsAnonymous bool   `json:"is_anonymous"` // True, if the user's presence in the chat is hidden
}

type ChatMemberRestricted

type ChatMemberRestricted struct {
	Status                string `json:"status"`                    // The member's status in the chat, always "restricted"
	User                  *User  `json:"user"`                      // Information about the user
	IsMember              bool   `json:"is_member"`                 // True, if the user is a member of the chat at the moment of the request
	CanChangeInfo         bool   `json:"can_change_info"`           // True, if the user is allowed to change the chat title, photo and other settings
	CanInviteUsers        bool   `json:"can_invite_users"`          // True, if the user is allowed to invite new users to the chat
	CanPinMessages        bool   `json:"can_pin_messages"`          // True, if the user is allowed to pin messages; groups and supergroups only
	CanSendMessages       bool   `json:"can_send_messages"`         // True, if the user is allowed to send text messages, contacts, locations and venues
	CanSendMediaMessages  bool   `json:"can_send_media_messages"`   // True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes
	CanSendPolls          bool   `json:"can_send_polls"`            // True, if the user is allowed to send polls
	CanSendOtherMessages  bool   `json:"can_send_other_messages"`   // True, if the user is allowed to send animations, games, stickers and use inline bots
	CanAddWebPagePreviews bool   `json:"can_add_web_page_previews"` // True, if the user is allowed to add web page previews to their messages
	UntilDate             int    `json:"until_date"`                // Date when restrictions will be lifted for this user; unix time
}

type ChatMemberUpdated

type ChatMemberUpdated struct {
	Chat          *Chat           `json:"chat"`                  // Chat the user belongs to
	From          *User           `json:"from"`                  // Performer of the action, which resulted in the change
	Date          int             `json:"date"`                  // Date the change was done in Unix time
	OldChatMember interface{}     `json:"old_chat_member"`       // Previous information about the chat member
	NewChatMember interface{}     `json:"new_chat_member"`       // New information about the chat member
	InviteLink    *ChatInviteLink `json:"invite_link,omitempty"` // Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
}

type ChatPermissions

type ChatPermissions struct {
	CanSendMessages       bool `json:"can_send_messages,omitempty"`         // Optional. True, if the user is allowed to send text messages, contacts, locations and venues
	CanSendMediaMessages  bool `json:"can_send_media_messages,omitempty"`   // Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages
	CanSendPolls          bool `json:"can_send_polls,omitempty"`            // Optional. True, if the user is allowed to send polls, implies can_send_messages
	CanSendOtherMessages  bool `json:"can_send_other_messages,omitempty"`   // Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages
	CanAddWebPagePreviews bool `json:"can_add_web_page_previews,omitempty"` // Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages
	CanChangeInfo         bool `json:"can_change_info,omitempty"`           // Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
	CanInviteUsers        bool `json:"can_invite_users,omitempty"`          // Optional. True, if the user is allowed to invite new users to the chat
	CanPinMessages        bool `json:"can_pin_messages,omitempty"`          // Optional. True, if the user is allowed to pin messages. Ignored in public supergroups
}

type ChatPhoto

type ChatPhoto struct {
	SmallFileId       string `json:"small_file_id"`        // File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
	SmallFileUniqueId string `json:"small_file_unique_id"` // Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	BigFileId         string `json:"big_file_id"`          // File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
	BigFileUniqueId   string `json:"big_file_unique_id"`   // Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
}

type ChosenInlineResult

type ChosenInlineResult struct {
	ResultId        string    `json:"result_id"`                   // The unique identifier for the result that was chosen
	From            *User     `json:"from"`                        // The user that chose the result
	Location        *Location `json:"location,omitempty"`          // Optional. Sender location, only for bots that require user location
	InlineMessageId string    `json:"inline_message_id,omitempty"` // Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
	Query           string    `json:"query"`                       // The query that was used to obtain the result
}

type Contact

type Contact struct {
	PhoneNumber string `json:"phone_number"`        // Contact's phone number
	FirstName   string `json:"first_name"`          // Contact's first name
	LastName    string `json:"last_name,omitempty"` // Optional. Contact's last name
	UserId      int    `json:"user_id,omitempty"`   // Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
	Vcard       string `json:"vcard,omitempty"`     // Optional. Additional data about the contact in the form of a vCard
}

type CopyMessageParams

type CopyMessageParams struct {
	ChatId                   interface{}      `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	FromChatId               interface{}      `json:"from_chat_id"`                          // Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
	MessageId                int              `json:"message_id"`                            // Message identifier in the chat specified in from_chat_id
	Caption                  string           `json:"caption,omitempty"`                     // Optional. New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept
	ParseMode                string           `json:"parse_mode,omitempty"`                  // Optional. Mode for parsing entities in the new caption. See formatting options for more details.
	CaptionEntities          []*MessageEntity `json:"caption_entities,omitempty"`            // Optional. List of special entities that appear in the new caption, which can be specified instead of parse_mode
	DisableNotification      bool             `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int              `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool             `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{}      `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type CreateChatInviteLinkParams

type CreateChatInviteLinkParams struct {
	ChatId      interface{} `json:"chat_id"`                // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	ExpireDate  int         `json:"expire_date,omitempty"`  // Optional. Point in time (Unix timestamp) when the link will expire
	MemberLimit int         `json:"member_limit,omitempty"` // Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
}

type CreateNewStickerSetParams

type CreateNewStickerSetParams struct {
	UserId        int           `json:"user_id"`                  // User identifier of created sticker set owner
	Name          string        `json:"name"`                     // Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot username>". <bot_username> is case insensitive. 1-64 characters.
	Title         string        `json:"title"`                    // Sticker set title, 1-64 characters
	PngSticker    interface{}   `json:"png_sticker,omitempty"`    // Optional. PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
	TgsSticker    interface{}   `json:"tgs_sticker,omitempty"`    // Optional. TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements
	Emojis        string        `json:"emojis"`                   // One or more emoji corresponding to the sticker
	ContainsMasks bool          `json:"contains_masks,omitempty"` // Optional. Pass True, if a set of mask stickers should be created
	MaskPosition  *MaskPosition `json:"mask_position,omitempty"`  // Optional. A JSON-serialized object for position where the mask should be placed on faces
}

type DeleteChatPhotoParams

type DeleteChatPhotoParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
}

type DeleteChatStickerSetParams

type DeleteChatStickerSetParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
}

type DeleteMessageParams

type DeleteMessageParams struct {
	ChatId    interface{} `json:"chat_id"`    // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId int         `json:"message_id"` // Identifier of the message to delete
}

type DeleteMyCommandsParams

type DeleteMyCommandsParams struct {
	Scope        interface{} `json:"scope,omitempty"`         // Optional. A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
	LanguageCode string      `json:"language_code,omitempty"` // Optional. A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands
}

type DeleteStickerFromSetParams

type DeleteStickerFromSetParams struct {
	Sticker string `json:"sticker"` // File identifier of the sticker
}

type DeleteWebhookParams

type DeleteWebhookParams struct {
	DropPendingUpdates bool `json:"drop_pending_updates,omitempty"` // Optional. Pass True to drop all pending updates
}

type Dice

type Dice struct {
	Emoji string `json:"emoji"` // Emoji on which the dice throw animation is based
	Value int    `json:"value"` // Value of the dice, 1-6 for "", "" and "" base emoji, 1-5 for "" and "" base emoji, 1-64 for "" base emoji
}

type Document

type Document struct {
	FileId       string     `json:"file_id"`             // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string     `json:"file_unique_id"`      // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	Thumb        *PhotoSize `json:"thumb,omitempty"`     // Optional. Document thumbnail as defined by sender
	FileName     string     `json:"file_name,omitempty"` // Optional. Original filename as defined by sender
	MimeType     string     `json:"mime_type,omitempty"` // Optional. MIME type of the file as defined by sender
	FileSize     int        `json:"file_size,omitempty"` // Optional. File size
}

type EditChatInviteLinkParams

type EditChatInviteLinkParams struct {
	ChatId      interface{} `json:"chat_id"`                // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	InviteLink  string      `json:"invite_link"`            // The invite link to edit
	ExpireDate  int         `json:"expire_date,omitempty"`  // Optional. Point in time (Unix timestamp) when the link will expire
	MemberLimit int         `json:"member_limit,omitempty"` // Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
}

type EditMessageCaptionParams

type EditMessageCaptionParams struct {
	ChatId          interface{}           `json:"chat_id,omitempty"`           // Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId       int                   `json:"message_id,omitempty"`        // Optional. Required if inline_message_id is not specified. Identifier of the message to edit
	InlineMessageId string                `json:"inline_message_id,omitempty"` // Optional. Required if chat_id and message_id are not specified. Identifier of the inline message
	Caption         string                `json:"caption,omitempty"`           // Optional. New caption of the message, 0-1024 characters after entities parsing
	ParseMode       string                `json:"parse_mode,omitempty"`        // Optional. Mode for parsing entities in the message caption. See formatting options for more details.
	CaptionEntities []*MessageEntity      `json:"caption_entities,omitempty"`  // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup     *InlineKeyboardMarkup `json:"reply_markup,omitempty"`      // Optional. A JSON-serialized object for an inline keyboard.
}

type EditMessageLiveLocationParams

type EditMessageLiveLocationParams struct {
	ChatId               interface{}           `json:"chat_id,omitempty"`                // Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId            int                   `json:"message_id,omitempty"`             // Optional. Required if inline_message_id is not specified. Identifier of the message to edit
	InlineMessageId      string                `json:"inline_message_id,omitempty"`      // Optional. Required if chat_id and message_id are not specified. Identifier of the inline message
	Latitude             float64               `json:"latitude"`                         // Latitude of new location
	Longitude            float64               `json:"longitude"`                        // Longitude of new location
	HorizontalAccuracy   float64               `json:"horizontal_accuracy,omitempty"`    // Optional. The radius of uncertainty for the location, measured in meters; 0-1500
	Heading              int                   `json:"heading,omitempty"`                // Optional. Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
	ProximityAlertRadius int                   `json:"proximity_alert_radius,omitempty"` // Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`           // Optional. A JSON-serialized object for a new inline keyboard.
}

type EditMessageMediaParams

type EditMessageMediaParams struct {
	ChatId          interface{}           `json:"chat_id,omitempty"`           // Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId       int                   `json:"message_id,omitempty"`        // Optional. Required if inline_message_id is not specified. Identifier of the message to edit
	InlineMessageId string                `json:"inline_message_id,omitempty"` // Optional. Required if chat_id and message_id are not specified. Identifier of the inline message
	Media           interface{}           `json:"media"`                       // A JSON-serialized object for a new media content of the message
	ReplyMarkup     *InlineKeyboardMarkup `json:"reply_markup,omitempty"`      // Optional. A JSON-serialized object for a new inline keyboard.
}

type EditMessageReplyMarkupParams

type EditMessageReplyMarkupParams struct {
	ChatId          interface{}           `json:"chat_id,omitempty"`           // Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId       int                   `json:"message_id,omitempty"`        // Optional. Required if inline_message_id is not specified. Identifier of the message to edit
	InlineMessageId string                `json:"inline_message_id,omitempty"` // Optional. Required if chat_id and message_id are not specified. Identifier of the inline message
	ReplyMarkup     *InlineKeyboardMarkup `json:"reply_markup,omitempty"`      // Optional. A JSON-serialized object for an inline keyboard.
}

type EditMessageTextParams

type EditMessageTextParams struct {
	ChatId                interface{}           `json:"chat_id,omitempty"`                  // Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId             int                   `json:"message_id,omitempty"`               // Optional. Required if inline_message_id is not specified. Identifier of the message to edit
	InlineMessageId       string                `json:"inline_message_id,omitempty"`        // Optional. Required if chat_id and message_id are not specified. Identifier of the inline message
	Text                  string                `json:"text"`                               // New text of the message, 1-4096 characters after entities parsing
	ParseMode             string                `json:"parse_mode,omitempty"`               // Optional. Mode for parsing entities in the message text. See formatting options for more details.
	Entities              []*MessageEntity      `json:"entities,omitempty"`                 // Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
	DisableWebPagePreview bool                  `json:"disable_web_page_preview,omitempty"` // Optional. Disables link previews for links in this message
	ReplyMarkup           *InlineKeyboardMarkup `json:"reply_markup,omitempty"`             // Optional. A JSON-serialized object for an inline keyboard.
}

func NewEditMessageText

func NewEditMessageText(chatId int, messageId int, text string, replyMarkup *InlineKeyboardMarkup) EditMessageTextParams

type EncryptedCredentials

type EncryptedCredentials struct {
	Data   string `json:"data"`   // Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
	Hash   string `json:"hash"`   // Base64-encoded data hash for data authentication
	Secret string `json:"secret"` // Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
}

type EncryptedPassportElement

type EncryptedPassportElement struct {
	Type        string          `json:"type"`                   // Element type. One of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration", "phone_number", "email".
	Data        string          `json:"data,omitempty"`         // Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for "personal_details", "passport", "driver_license", "identity_card", "internal_passport" and "address" types. Can be decrypted and verified using the accompanying EncryptedCredentials.
	PhoneNumber string          `json:"phone_number,omitempty"` // Optional. User's verified phone number, available only for "phone_number" type
	Email       string          `json:"email,omitempty"`        // Optional. User's verified email address, available only for "email" type
	Files       []*PassportFile `json:"files,omitempty"`        // Optional. Array of encrypted files with documents provided by the user, available for "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
	FrontSide   *PassportFile   `json:"front_side,omitempty"`   // Optional. Encrypted file with the front side of the document, provided by the user. Available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials.
	ReverseSide *PassportFile   `json:"reverse_side,omitempty"` // Optional. Encrypted file with the reverse side of the document, provided by the user. Available for "driver_license" and "identity_card". The file can be decrypted and verified using the accompanying EncryptedCredentials.
	Selfie      *PassportFile   `json:"selfie,omitempty"`       // Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials.
	Translation []*PassportFile `json:"translation,omitempty"`  // Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
	Hash        string          `json:"hash"`                   // Base64-encoded element hash for using in PassportElementErrorUnspecified
}

type Error

type Error struct {
	Description string
	ErrorCode   int
	Parameters  *ResponseParameters
}

func (*Error) Error

func (err *Error) Error() string

type ExportChatInviteLinkParams

type ExportChatInviteLinkParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
}

type File

type File struct {
	FileId       string `json:"file_id"`             // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string `json:"file_unique_id"`      // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	FileSize     int    `json:"file_size,omitempty"` // Optional. File size, if known
	FilePath     string `json:"file_path,omitempty"` // Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file.
}

type ForceReply

type ForceReply struct {
	ForceReply            bool   `json:"force_reply"`                       // Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
	InputFieldPlaceholder string `json:"input_field_placeholder,omitempty"` // Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
	Selective             bool   `json:"selective,omitempty"`               // Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
}

type ForwardMessageParams

type ForwardMessageParams struct {
	ChatId              interface{} `json:"chat_id"`                        // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	FromChatId          interface{} `json:"from_chat_id"`                   // Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
	DisableNotification bool        `json:"disable_notification,omitempty"` // Optional. Sends the message silently. Users will receive a notification with no sound.
	MessageId           int         `json:"message_id"`                     // Message identifier in the chat specified in from_chat_id
}

type Game

type Game struct {
	Title        string           `json:"title"`                   // Title of the game
	Description  string           `json:"description"`             // Description of the game
	Photo        []*PhotoSize     `json:"photo"`                   // Photo that will be displayed in the game message in chats.
	Text         string           `json:"text,omitempty"`          // Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.
	TextEntities []*MessageEntity `json:"text_entities,omitempty"` // Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.
	Animation    *Animation       `json:"animation,omitempty"`     // Optional. Animation that will be displayed in the game message in chats. Upload via BotFather
}

type GameHighScore

type GameHighScore struct {
	Position int   `json:"position"` // Position in high score table for the game
	User     *User `json:"user"`     // User
	Score    int   `json:"score"`    // Score
}

type GetChatAdministratorsParams

type GetChatAdministratorsParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
}

type GetChatMemberCountParams

type GetChatMemberCountParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
}

type GetChatMemberParams

type GetChatMemberParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
	UserId int         `json:"user_id"` // Unique identifier of the target user
}

type GetChatParams

type GetChatParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
}

type GetFileParams

type GetFileParams struct {
	FileId string `json:"file_id"` // File identifier to get info about
}

type GetGameHighScoresParams

type GetGameHighScoresParams struct {
	UserId          int    `json:"user_id"`                     // Target user id
	ChatId          int    `json:"chat_id,omitempty"`           // Optional. Required if inline_message_id is not specified. Unique identifier for the target chat
	MessageId       int    `json:"message_id,omitempty"`        // Optional. Required if inline_message_id is not specified. Identifier of the sent message
	InlineMessageId string `json:"inline_message_id,omitempty"` // Optional. Required if chat_id and message_id are not specified. Identifier of the inline message
}

type GetMyCommandsParams

type GetMyCommandsParams struct {
	Scope        interface{} `json:"scope,omitempty"`         // Optional. A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.
	LanguageCode string      `json:"language_code,omitempty"` // Optional. A two-letter ISO 639-1 language code or an empty string
}

type GetStickerSetParams

type GetStickerSetParams struct {
	Name string `json:"name"` // Name of the sticker set
}

type GetUpdatesParams

type GetUpdatesParams struct {
	Offset         int      `json:"offset,omitempty"`          // Optional. Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. The negative offset can be specified to retrieve updates starting from -offset update from the end of the updates queue. All previous updates will forgotten.
	Limit          int      `json:"limit,omitempty"`           // Optional. Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.
	Timeout        int      `json:"timeout,omitempty"`         // Optional. Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive, short polling should be used for testing purposes only.
	AllowedUpdates []string `json:"allowed_updates,omitempty"` // Optional. A JSON-serialized list of the update types you want your bot to receive. For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member (default). If not specified, the previous setting will be used.Please note that this parameter doesn't affect updates created before the call to the getUpdates, so unwanted updates may be received for a short period of time.
}

type GetUserProfilePhotosParams

type GetUserProfilePhotosParams struct {
	UserId int `json:"user_id"`          // Unique identifier of the target user
	Offset int `json:"offset,omitempty"` // Optional. Sequential number of the first photo to be returned. By default, all photos are returned.
	Limit  int `json:"limit,omitempty"`  // Optional. Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
}

type GoBot

type GoBot struct {
	Timeout int
	// contains filtered or unexported fields
}

func Init

func Init(token string) *GoBot

func InitTimeout

func InitTimeout(token string, timeout int) *GoBot

func (*GoBot) AddHandler

func (bot *GoBot) AddHandler(updateType interface{}, callback func(bot *GoBot, update *Update))

func (GoBot) AddStickerToSet

func (bot GoBot) AddStickerToSet(params AddStickerToSetParams) (bool, error)

func (GoBot) AnswerCallbackQuery

func (bot GoBot) AnswerCallbackQuery(params AnswerCallbackQueryParams) (bool, error)

func (GoBot) AnswerInlineQuery

func (bot GoBot) AnswerInlineQuery(params AnswerInlineQueryParams) (bool, error)

func (GoBot) AnswerPreCheckoutQuery

func (bot GoBot) AnswerPreCheckoutQuery(params AnswerPreCheckoutQueryParams) (bool, error)

func (GoBot) AnswerShippingQuery

func (bot GoBot) AnswerShippingQuery(params AnswerShippingQueryParams) (bool, error)

func (GoBot) BanChatMember

func (bot GoBot) BanChatMember(params BanChatMemberParams) (bool, error)

func (GoBot) Close

func (bot GoBot) Close() (bool, error)

func (GoBot) CopyMessage

func (bot GoBot) CopyMessage(params CopyMessageParams) (*MessageId, error)
func (bot GoBot) CreateChatInviteLink(params CreateChatInviteLinkParams) (*ChatInviteLink, error)

func (GoBot) CreateNewStickerSet

func (bot GoBot) CreateNewStickerSet(params CreateNewStickerSetParams) (bool, error)

func (GoBot) DeleteChatPhoto

func (bot GoBot) DeleteChatPhoto(params DeleteChatPhotoParams) (bool, error)

func (GoBot) DeleteChatStickerSet

func (bot GoBot) DeleteChatStickerSet(params DeleteChatStickerSetParams) (bool, error)

func (GoBot) DeleteMessage

func (bot GoBot) DeleteMessage(params DeleteMessageParams) (bool, error)

func (GoBot) DeleteMyCommands

func (bot GoBot) DeleteMyCommands(params DeleteMyCommandsParams) (bool, error)

func (GoBot) DeleteStickerFromSet

func (bot GoBot) DeleteStickerFromSet(params DeleteStickerFromSetParams) (bool, error)

func (GoBot) DeleteWebhook

func (bot GoBot) DeleteWebhook(params DeleteWebhookParams) (bool, error)
func (bot GoBot) EditChatInviteLink(params EditChatInviteLinkParams) (*ChatInviteLink, error)

func (GoBot) EditMessageCaption

func (bot GoBot) EditMessageCaption(params EditMessageCaptionParams) (interface{}, error)

func (GoBot) EditMessageLiveLocation

func (bot GoBot) EditMessageLiveLocation(params EditMessageLiveLocationParams) (interface{}, error)

func (GoBot) EditMessageMedia

func (bot GoBot) EditMessageMedia(params EditMessageMediaParams) (interface{}, error)

func (GoBot) EditMessageReplyMarkup

func (bot GoBot) EditMessageReplyMarkup(params EditMessageReplyMarkupParams) (interface{}, error)

func (GoBot) EditMessageText

func (bot GoBot) EditMessageText(params EditMessageTextParams) (interface{}, error)
func (bot GoBot) ExportChatInviteLink(params ExportChatInviteLinkParams) (string, error)

func (GoBot) ForwardMessage

func (bot GoBot) ForwardMessage(params ForwardMessageParams) (*Message, error)

func (GoBot) GetChat

func (bot GoBot) GetChat(params GetChatParams) (*Chat, error)

func (GoBot) GetChatAdministrators

func (bot GoBot) GetChatAdministrators(params GetChatAdministratorsParams) ([]interface{}, error)

func (GoBot) GetChatMember

func (bot GoBot) GetChatMember(params GetChatMemberParams) (interface{}, error)

func (GoBot) GetChatMemberCount

func (bot GoBot) GetChatMemberCount(params GetChatMemberCountParams) (int, error)

func (GoBot) GetFile

func (bot GoBot) GetFile(params GetFileParams) (*File, error)

func (GoBot) GetGameHighScores

func (bot GoBot) GetGameHighScores(params GetGameHighScoresParams) ([]*GameHighScore, error)

func (GoBot) GetMe

func (bot GoBot) GetMe() (*User, error)

func (GoBot) GetMyCommands

func (bot GoBot) GetMyCommands(params GetMyCommandsParams) ([]*BotCommand, error)

func (GoBot) GetStickerSet

func (bot GoBot) GetStickerSet(params GetStickerSetParams) (*StickerSet, error)

func (GoBot) GetUpdates

func (bot GoBot) GetUpdates(params GetUpdatesParams) ([]*Update, error)

func (GoBot) GetUserProfilePhotos

func (bot GoBot) GetUserProfilePhotos(params GetUserProfilePhotosParams) (*UserProfilePhotos, error)

func (GoBot) GetWebhookInfo

func (bot GoBot) GetWebhookInfo() (*WebhookInfo, error)

func (GoBot) LeaveChat

func (bot GoBot) LeaveChat(params LeaveChatParams) (bool, error)

func (GoBot) LogOut

func (bot GoBot) LogOut() (bool, error)

func (*GoBot) Loop

func (bot *GoBot) Loop(returnError bool) error

func (GoBot) PinChatMessage

func (bot GoBot) PinChatMessage(params PinChatMessageParams) (bool, error)

func (GoBot) PromoteChatMember

func (bot GoBot) PromoteChatMember(params PromoteChatMemberParams) (bool, error)

func (*GoBot) Request

func (bot *GoBot) Request(method string, params interface{}) (json.RawMessage, error)

func (GoBot) RestrictChatMember

func (bot GoBot) RestrictChatMember(params RestrictChatMemberParams) (bool, error)
func (bot GoBot) RevokeChatInviteLink(params RevokeChatInviteLinkParams) (*ChatInviteLink, error)

func (GoBot) SendAnimation

func (bot GoBot) SendAnimation(params SendAnimationParams) (*Message, error)

func (GoBot) SendAudio

func (bot GoBot) SendAudio(params SendAudioParams) (*Message, error)

func (GoBot) SendChatAction

func (bot GoBot) SendChatAction(params SendChatActionParams) (bool, error)

func (GoBot) SendContact

func (bot GoBot) SendContact(params SendContactParams) (*Message, error)

func (GoBot) SendDice

func (bot GoBot) SendDice(params SendDiceParams) (*Message, error)

func (GoBot) SendDocument

func (bot GoBot) SendDocument(params SendDocumentParams) (*Message, error)

func (GoBot) SendGame

func (bot GoBot) SendGame(params SendGameParams) (*Message, error)

func (GoBot) SendInvoice

func (bot GoBot) SendInvoice(params SendInvoiceParams) (*Message, error)

func (GoBot) SendLocation

func (bot GoBot) SendLocation(params SendLocationParams) (*Message, error)

func (GoBot) SendMediaGroup

func (bot GoBot) SendMediaGroup(params SendMediaGroupParams) ([]*Message, error)

func (GoBot) SendMessage

func (bot GoBot) SendMessage(params SendMessageParams) (*Message, error)

func (GoBot) SendPhoto

func (bot GoBot) SendPhoto(params SendPhotoParams) (*Message, error)

func (GoBot) SendPoll

func (bot GoBot) SendPoll(params SendPollParams) (*Message, error)

func (GoBot) SendSticker

func (bot GoBot) SendSticker(params SendStickerParams) (*Message, error)

func (GoBot) SendVenue

func (bot GoBot) SendVenue(params SendVenueParams) (*Message, error)

func (GoBot) SendVideo

func (bot GoBot) SendVideo(params SendVideoParams) (*Message, error)

func (GoBot) SendVideoNote

func (bot GoBot) SendVideoNote(params SendVideoNoteParams) (*Message, error)

func (GoBot) SendVoice

func (bot GoBot) SendVoice(params SendVoiceParams) (*Message, error)

func (GoBot) SetChatAdministratorCustomTitle

func (bot GoBot) SetChatAdministratorCustomTitle(params SetChatAdministratorCustomTitleParams) (bool, error)

func (GoBot) SetChatDescription

func (bot GoBot) SetChatDescription(params SetChatDescriptionParams) (bool, error)

func (GoBot) SetChatPermissions

func (bot GoBot) SetChatPermissions(params SetChatPermissionsParams) (bool, error)

func (GoBot) SetChatPhoto

func (bot GoBot) SetChatPhoto(params SetChatPhotoParams) (bool, error)

func (GoBot) SetChatStickerSet

func (bot GoBot) SetChatStickerSet(params SetChatStickerSetParams) (bool, error)

func (GoBot) SetChatTitle

func (bot GoBot) SetChatTitle(params SetChatTitleParams) (bool, error)

func (GoBot) SetGameScore

func (bot GoBot) SetGameScore(params SetGameScoreParams) (interface{}, error)

func (GoBot) SetMyCommands

func (bot GoBot) SetMyCommands(params SetMyCommandsParams) (bool, error)

func (GoBot) SetPassportDataErrors

func (bot GoBot) SetPassportDataErrors(params SetPassportDataErrorsParams) (bool, error)

func (GoBot) SetStickerPositionInSet

func (bot GoBot) SetStickerPositionInSet(params SetStickerPositionInSetParams) (bool, error)

func (GoBot) SetStickerSetThumb

func (bot GoBot) SetStickerSetThumb(params SetStickerSetThumbParams) (bool, error)

func (GoBot) SetWebhook

func (bot GoBot) SetWebhook(params SetWebhookParams) (bool, error)

func (GoBot) StopMessageLiveLocation

func (bot GoBot) StopMessageLiveLocation(params StopMessageLiveLocationParams) (interface{}, error)

func (GoBot) StopPoll

func (bot GoBot) StopPoll(params StopPollParams) (*Poll, error)

func (GoBot) UnbanChatMember

func (bot GoBot) UnbanChatMember(params UnbanChatMemberParams) (bool, error)

func (GoBot) UnpinAllChatMessages

func (bot GoBot) UnpinAllChatMessages(params UnpinAllChatMessagesParams) (bool, error)

func (GoBot) UnpinChatMessage

func (bot GoBot) UnpinChatMessage(params UnpinChatMessageParams) (bool, error)

func (GoBot) UploadStickerFile

func (bot GoBot) UploadStickerFile(params UploadStickerFileParams) (*File, error)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

type InlineKeyboardButton

type InlineKeyboardButton struct {
	Text                         string        `json:"text"`                                       // Label text on the button
	Url                          string        `json:"url,omitempty"`                              // Optional. HTTP or tg:// url to be opened when button is pressed
	LoginUrl                     *LoginUrl     `json:"login_url,omitempty"`                        // Optional. An HTTP URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget.
	CallbackData                 string        `json:"callback_data,omitempty"`                    // Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes
	SwitchInlineQuery            string        `json:"switch_inline_query,omitempty"`              // Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. Can be empty, in which case just the bot's username will be inserted.Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions – in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen.
	SwitchInlineQueryCurrentChat string        `json:"switch_inline_query_current_chat,omitempty"` // Optional. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot's username will be inserted.This offers a quick way for the user to open your bot in inline mode in the same chat – good for selecting something from multiple options.
	CallbackGame                 *CallbackGame `json:"callback_game,omitempty"`                    // Optional. Description of the game that will be launched when the user presses the button.NOTE: This type of button must always be the first button in the first row.
	Pay                          bool          `json:"pay,omitempty"`                              // Optional. Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the first row.
}

func NewInlineKeyboardButton

func NewInlineKeyboardButton(text string, value string, isCallbackData bool) *InlineKeyboardButton

func NewInlineKeyboardRow

func NewInlineKeyboardRow(values ...*InlineKeyboardButton) []*InlineKeyboardButton

type InlineKeyboardMarkup

type InlineKeyboardMarkup struct {
	InlineKeyboard [][]*InlineKeyboardButton `json:"inline_keyboard"` // Array of button rows, each represented by an Array of InlineKeyboardButton objects
}

func NewInlineKeyboardMarkup

func NewInlineKeyboardMarkup(values ...[]*InlineKeyboardButton) *InlineKeyboardMarkup

type InlineQuery

type InlineQuery struct {
	Id       string    `json:"id"`                  // Unique identifier for this query
	From     *User     `json:"from"`                // Sender
	Query    string    `json:"query"`               // Text of the query (up to 256 characters)
	Offset   string    `json:"offset"`              // Offset of the results to be returned, can be controlled by the bot
	ChatType string    `json:"chat_type,omitempty"` // Optional. Type of the chat, from which the inline query was sent. Can be either "sender" for a private chat with the inline query sender, "private", "group", "supergroup", or "channel". The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat
	Location *Location `json:"location,omitempty"`  // Optional. Sender location, only for bots that request user location
}

type InlineQueryResultArticle

type InlineQueryResultArticle struct {
	Type                string                `json:"type"`                   // Type of the result, must be article
	Id                  string                `json:"id"`                     // Unique identifier for this result, 1-64 Bytes
	Title               string                `json:"title"`                  // Title of the result
	InputMessageContent interface{}           `json:"input_message_content"`  // Content of the message to be sent
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"` // Optional. Inline keyboard attached to the message
	Url                 string                `json:"url,omitempty"`          // Optional. URL of the result
	HideUrl             bool                  `json:"hide_url,omitempty"`     // Optional. Pass True, if you don't want the URL to be shown in the message
	Description         string                `json:"description,omitempty"`  // Optional. Short description of the result
	ThumbUrl            string                `json:"thumb_url,omitempty"`    // Optional. Url of the thumbnail for the result
	ThumbWidth          int                   `json:"thumb_width,omitempty"`  // Optional. Thumbnail width
	ThumbHeight         int                   `json:"thumb_height,omitempty"` // Optional. Thumbnail height
}

type InlineQueryResultAudio

type InlineQueryResultAudio struct {
	Type                string                `json:"type"`                            // Type of the result, must be audio
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	AudioUrl            string                `json:"audio_url"`                       // A valid URL for the audio file
	Title               string                `json:"title"`                           // Title
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	Performer           string                `json:"performer,omitempty"`             // Optional. Performer
	AudioDuration       int                   `json:"audio_duration,omitempty"`        // Optional. Audio duration in seconds
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the audio
}

type InlineQueryResultCachedAudio

type InlineQueryResultCachedAudio struct {
	Type                string                `json:"type"`                            // Type of the result, must be audio
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	AudioFileId         string                `json:"audio_file_id"`                   // A valid file identifier for the audio file
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the audio
}

type InlineQueryResultCachedDocument

type InlineQueryResultCachedDocument struct {
	Type                string                `json:"type"`                            // Type of the result, must be document
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	Title               string                `json:"title"`                           // Title for the result
	DocumentFileId      string                `json:"document_file_id"`                // A valid file identifier for the file
	Description         string                `json:"description,omitempty"`           // Optional. Short description of the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the document to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the document caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the file
}

type InlineQueryResultCachedGif

type InlineQueryResultCachedGif struct {
	Type                string                `json:"type"`                            // Type of the result, must be gif
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	GifFileId           string                `json:"gif_file_id"`                     // A valid file identifier for the GIF file
	Title               string                `json:"title,omitempty"`                 // Optional. Title for the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the GIF animation
}

type InlineQueryResultCachedMpeg4Gif

type InlineQueryResultCachedMpeg4Gif struct {
	Type                string                `json:"type"`                            // Type of the result, must be mpeg4_gif
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	Mpeg4FileId         string                `json:"mpeg4_file_id"`                   // A valid file identifier for the MP4 file
	Title               string                `json:"title,omitempty"`                 // Optional. Title for the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the video animation
}

type InlineQueryResultCachedPhoto

type InlineQueryResultCachedPhoto struct {
	Type                string                `json:"type"`                            // Type of the result, must be photo
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	PhotoFileId         string                `json:"photo_file_id"`                   // A valid file identifier of the photo
	Title               string                `json:"title,omitempty"`                 // Optional. Title for the result
	Description         string                `json:"description,omitempty"`           // Optional. Short description of the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the photo
}

type InlineQueryResultCachedSticker

type InlineQueryResultCachedSticker struct {
	Type                string                `json:"type"`                            // Type of the result, must be sticker
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	StickerFileId       string                `json:"sticker_file_id"`                 // A valid file identifier of the sticker
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the sticker
}

type InlineQueryResultCachedVideo

type InlineQueryResultCachedVideo struct {
	Type                string                `json:"type"`                            // Type of the result, must be video
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	VideoFileId         string                `json:"video_file_id"`                   // A valid file identifier for the video file
	Title               string                `json:"title"`                           // Title for the result
	Description         string                `json:"description,omitempty"`           // Optional. Short description of the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the video to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the video caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the video
}

type InlineQueryResultCachedVoice

type InlineQueryResultCachedVoice struct {
	Type                string                `json:"type"`                            // Type of the result, must be voice
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	VoiceFileId         string                `json:"voice_file_id"`                   // A valid file identifier for the voice message
	Title               string                `json:"title"`                           // Voice message title
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the voice message
}

type InlineQueryResultContact

type InlineQueryResultContact struct {
	Type                string                `json:"type"`                            // Type of the result, must be contact
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 Bytes
	PhoneNumber         string                `json:"phone_number"`                    // Contact's phone number
	FirstName           string                `json:"first_name"`                      // Contact's first name
	LastName            string                `json:"last_name,omitempty"`             // Optional. Contact's last name
	Vcard               string                `json:"vcard,omitempty"`                 // Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the contact
	ThumbUrl            string                `json:"thumb_url,omitempty"`             // Optional. Url of the thumbnail for the result
	ThumbWidth          int                   `json:"thumb_width,omitempty"`           // Optional. Thumbnail width
	ThumbHeight         int                   `json:"thumb_height,omitempty"`          // Optional. Thumbnail height
}

type InlineQueryResultDocument

type InlineQueryResultDocument struct {
	Type                string                `json:"type"`                            // Type of the result, must be document
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	Title               string                `json:"title"`                           // Title for the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the document to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the document caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	DocumentUrl         string                `json:"document_url"`                    // A valid URL for the file
	MimeType            string                `json:"mime_type"`                       // Mime type of the content of the file, either "application/pdf" or "application/zip"
	Description         string                `json:"description,omitempty"`           // Optional. Short description of the result
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the file
	ThumbUrl            string                `json:"thumb_url,omitempty"`             // Optional. URL of the thumbnail (jpeg only) for the file
	ThumbWidth          int                   `json:"thumb_width,omitempty"`           // Optional. Thumbnail width
	ThumbHeight         int                   `json:"thumb_height,omitempty"`          // Optional. Thumbnail height
}

type InlineQueryResultGame

type InlineQueryResultGame struct {
	Type          string                `json:"type"`                   // Type of the result, must be game
	Id            string                `json:"id"`                     // Unique identifier for this result, 1-64 bytes
	GameShortName string                `json:"game_short_name"`        // Short name of the game
	ReplyMarkup   *InlineKeyboardMarkup `json:"reply_markup,omitempty"` // Optional. Inline keyboard attached to the message
}

type InlineQueryResultGif

type InlineQueryResultGif struct {
	Type                string                `json:"type"`                            // Type of the result, must be gif
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	GifUrl              string                `json:"gif_url"`                         // A valid URL for the GIF file. File size must not exceed 1MB
	GifWidth            int                   `json:"gif_width,omitempty"`             // Optional. Width of the GIF
	GifHeight           int                   `json:"gif_height,omitempty"`            // Optional. Height of the GIF
	GifDuration         int                   `json:"gif_duration,omitempty"`          // Optional. Duration of the GIF
	ThumbUrl            string                `json:"thumb_url"`                       // URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
	ThumbMimeType       string                `json:"thumb_mime_type,omitempty"`       // Optional. MIME type of the thumbnail, must be one of "image/jpeg", "image/gif", or "video/mp4". Defaults to "image/jpeg"
	Title               string                `json:"title,omitempty"`                 // Optional. Title for the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the GIF animation
}

type InlineQueryResultLocation

type InlineQueryResultLocation struct {
	Type                 string                `json:"type"`                             // Type of the result, must be location
	Id                   string                `json:"id"`                               // Unique identifier for this result, 1-64 Bytes
	Latitude             float64               `json:"latitude"`                         // Location latitude in degrees
	Longitude            float64               `json:"longitude"`                        // Location longitude in degrees
	Title                string                `json:"title"`                            // Location title
	HorizontalAccuracy   float64               `json:"horizontal_accuracy,omitempty"`    // Optional. The radius of uncertainty for the location, measured in meters; 0-1500
	LivePeriod           int                   `json:"live_period,omitempty"`            // Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
	Heading              int                   `json:"heading,omitempty"`                // Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
	ProximityAlertRadius int                   `json:"proximity_alert_radius,omitempty"` // Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`           // Optional. Inline keyboard attached to the message
	InputMessageContent  interface{}           `json:"input_message_content,omitempty"`  // Optional. Content of the message to be sent instead of the location
	ThumbUrl             string                `json:"thumb_url,omitempty"`              // Optional. Url of the thumbnail for the result
	ThumbWidth           int                   `json:"thumb_width,omitempty"`            // Optional. Thumbnail width
	ThumbHeight          int                   `json:"thumb_height,omitempty"`           // Optional. Thumbnail height
}

type InlineQueryResultMpeg4Gif

type InlineQueryResultMpeg4Gif struct {
	Type                string                `json:"type"`                            // Type of the result, must be mpeg4_gif
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	Mpeg4Url            string                `json:"mpeg4_url"`                       // A valid URL for the MP4 file. File size must not exceed 1MB
	Mpeg4Width          int                   `json:"mpeg4_width,omitempty"`           // Optional. Video width
	Mpeg4Height         int                   `json:"mpeg4_height,omitempty"`          // Optional. Video height
	Mpeg4Duration       int                   `json:"mpeg4_duration,omitempty"`        // Optional. Video duration
	ThumbUrl            string                `json:"thumb_url"`                       // URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
	ThumbMimeType       string                `json:"thumb_mime_type,omitempty"`       // Optional. MIME type of the thumbnail, must be one of "image/jpeg", "image/gif", or "video/mp4". Defaults to "image/jpeg"
	Title               string                `json:"title,omitempty"`                 // Optional. Title for the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the video animation
}

type InlineQueryResultPhoto

type InlineQueryResultPhoto struct {
	Type                string                `json:"type"`                            // Type of the result, must be photo
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	PhotoUrl            string                `json:"photo_url"`                       // A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB
	ThumbUrl            string                `json:"thumb_url"`                       // URL of the thumbnail for the photo
	PhotoWidth          int                   `json:"photo_width,omitempty"`           // Optional. Width of the photo
	PhotoHeight         int                   `json:"photo_height,omitempty"`          // Optional. Height of the photo
	Title               string                `json:"title,omitempty"`                 // Optional. Title for the result
	Description         string                `json:"description,omitempty"`           // Optional. Short description of the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the photo
}

type InlineQueryResultVenue

type InlineQueryResultVenue struct {
	Type                string                `json:"type"`                            // Type of the result, must be venue
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 Bytes
	Latitude            float64               `json:"latitude"`                        // Latitude of the venue location in degrees
	Longitude           float64               `json:"longitude"`                       // Longitude of the venue location in degrees
	Title               string                `json:"title"`                           // Title of the venue
	Address             string                `json:"address"`                         // Address of the venue
	FoursquareId        string                `json:"foursquare_id,omitempty"`         // Optional. Foursquare identifier of the venue if known
	FoursquareType      string                `json:"foursquare_type,omitempty"`       // Optional. Foursquare type of the venue, if known. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
	GooglePlaceId       string                `json:"google_place_id,omitempty"`       // Optional. Google Places identifier of the venue
	GooglePlaceType     string                `json:"google_place_type,omitempty"`     // Optional. Google Places type of the venue. (See supported types.)
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the venue
	ThumbUrl            string                `json:"thumb_url,omitempty"`             // Optional. Url of the thumbnail for the result
	ThumbWidth          int                   `json:"thumb_width,omitempty"`           // Optional. Thumbnail width
	ThumbHeight         int                   `json:"thumb_height,omitempty"`          // Optional. Thumbnail height
}

type InlineQueryResultVideo

type InlineQueryResultVideo struct {
	Type                string                `json:"type"`                            // Type of the result, must be video
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	VideoUrl            string                `json:"video_url"`                       // A valid URL for the embedded video player or video file
	MimeType            string                `json:"mime_type"`                       // Mime type of the content of video url, "text/html" or "video/mp4"
	ThumbUrl            string                `json:"thumb_url"`                       // URL of the thumbnail (jpeg only) for the video
	Title               string                `json:"title"`                           // Title for the result
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption of the video to be sent, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the video caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	VideoWidth          int                   `json:"video_width,omitempty"`           // Optional. Video width
	VideoHeight         int                   `json:"video_height,omitempty"`          // Optional. Video height
	VideoDuration       int                   `json:"video_duration,omitempty"`        // Optional. Video duration in seconds
	Description         string                `json:"description,omitempty"`           // Optional. Short description of the result
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).
}

type InlineQueryResultVoice

type InlineQueryResultVoice struct {
	Type                string                `json:"type"`                            // Type of the result, must be voice
	Id                  string                `json:"id"`                              // Unique identifier for this result, 1-64 bytes
	VoiceUrl            string                `json:"voice_url"`                       // A valid URL for the voice recording
	Title               string                `json:"title"`                           // Recording title
	Caption             string                `json:"caption,omitempty"`               // Optional. Caption, 0-1024 characters after entities parsing
	ParseMode           string                `json:"parse_mode,omitempty"`            // Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.
	CaptionEntities     []*MessageEntity      `json:"caption_entities,omitempty"`      // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	VoiceDuration       int                   `json:"voice_duration,omitempty"`        // Optional. Recording duration in seconds
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`          // Optional. Inline keyboard attached to the message
	InputMessageContent interface{}           `json:"input_message_content,omitempty"` // Optional. Content of the message to be sent instead of the voice recording
}

type InputContactMessageContent

type InputContactMessageContent struct {
	PhoneNumber string `json:"phone_number"`        // Contact's phone number
	FirstName   string `json:"first_name"`          // Contact's first name
	LastName    string `json:"last_name,omitempty"` // Optional. Contact's last name
	Vcard       string `json:"vcard,omitempty"`     // Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
}

type InputInvoiceMessageContent

type InputInvoiceMessageContent struct {
	Title                     string          `json:"title"`                                   // Product name, 1-32 characters
	Description               string          `json:"description"`                             // Product description, 1-255 characters
	Payload                   string          `json:"payload"`                                 // Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
	ProviderToken             string          `json:"provider_token"`                          // Payment provider token, obtained via Botfather
	Currency                  string          `json:"currency"`                                // Three-letter ISO 4217 currency code, see more on currencies
	Prices                    []*LabeledPrice `json:"prices"`                                  // Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)
	MaxTipAmount              int             `json:"max_tip_amount,omitempty"`                // Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0
	SuggestedTipAmounts       []int           `json:"suggested_tip_amounts,omitempty"`         // Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.
	ProviderData              string          `json:"provider_data,omitempty"`                 // Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.
	PhotoUrl                  string          `json:"photo_url,omitempty"`                     // Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.
	PhotoSize                 int             `json:"photo_size,omitempty"`                    // Optional. Photo size
	PhotoWidth                int             `json:"photo_width,omitempty"`                   // Optional. Photo width
	PhotoHeight               int             `json:"photo_height,omitempty"`                  // Optional. Photo height
	NeedName                  bool            `json:"need_name,omitempty"`                     // Optional. Pass True, if you require the user's full name to complete the order
	NeedPhoneNumber           bool            `json:"need_phone_number,omitempty"`             // Optional. Pass True, if you require the user's phone number to complete the order
	NeedEmail                 bool            `json:"need_email,omitempty"`                    // Optional. Pass True, if you require the user's email address to complete the order
	NeedShippingAddress       bool            `json:"need_shipping_address,omitempty"`         // Optional. Pass True, if you require the user's shipping address to complete the order
	SendPhoneNumberToProvider bool            `json:"send_phone_number_to_provider,omitempty"` // Optional. Pass True, if user's phone number should be sent to provider
	SendEmailToProvider       bool            `json:"send_email_to_provider,omitempty"`        // Optional. Pass True, if user's email address should be sent to provider
	IsFlexible                bool            `json:"is_flexible,omitempty"`                   // Optional. Pass True, if the final price depends on the shipping method
}

type InputLocationMessageContent

type InputLocationMessageContent struct {
	Latitude             float64 `json:"latitude"`                         // Latitude of the location in degrees
	Longitude            float64 `json:"longitude"`                        // Longitude of the location in degrees
	HorizontalAccuracy   float64 `json:"horizontal_accuracy,omitempty"`    // Optional. The radius of uncertainty for the location, measured in meters; 0-1500
	LivePeriod           int     `json:"live_period,omitempty"`            // Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
	Heading              int     `json:"heading,omitempty"`                // Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
	ProximityAlertRadius int     `json:"proximity_alert_radius,omitempty"` // Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
}

type InputMediaAnimation

type InputMediaAnimation struct {
	Type            string           `json:"type"`                       // Type of the result, must be animation
	Media           string           `json:"media"`                      // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
	Thumb           interface{}      `json:"thumb,omitempty"`            // Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
	Caption         string           `json:"caption,omitempty"`          // Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing
	ParseMode       string           `json:"parse_mode,omitempty"`       // Optional. Mode for parsing entities in the animation caption. See formatting options for more details.
	CaptionEntities []*MessageEntity `json:"caption_entities,omitempty"` // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	Width           int              `json:"width,omitempty"`            // Optional. Animation width
	Height          int              `json:"height,omitempty"`           // Optional. Animation height
	Duration        int              `json:"duration,omitempty"`         // Optional. Animation duration
}

type InputMediaAudio

type InputMediaAudio struct {
	Type            string           `json:"type"`                       // Type of the result, must be audio
	Media           string           `json:"media"`                      // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
	Thumb           interface{}      `json:"thumb,omitempty"`            // Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
	Caption         string           `json:"caption,omitempty"`          // Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing
	ParseMode       string           `json:"parse_mode,omitempty"`       // Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
	CaptionEntities []*MessageEntity `json:"caption_entities,omitempty"` // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	Duration        int              `json:"duration,omitempty"`         // Optional. Duration of the audio in seconds
	Performer       string           `json:"performer,omitempty"`        // Optional. Performer of the audio
	Title           string           `json:"title,omitempty"`            // Optional. Title of the audio
}

type InputMediaDocument

type InputMediaDocument struct {
	Type                        string           `json:"type"`                                     // Type of the result, must be document
	Media                       string           `json:"media"`                                    // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
	Thumb                       interface{}      `json:"thumb,omitempty"`                          // Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
	Caption                     string           `json:"caption,omitempty"`                        // Optional. Caption of the document to be sent, 0-1024 characters after entities parsing
	ParseMode                   string           `json:"parse_mode,omitempty"`                     // Optional. Mode for parsing entities in the document caption. See formatting options for more details.
	CaptionEntities             []*MessageEntity `json:"caption_entities,omitempty"`               // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	DisableContentTypeDetection bool             `json:"disable_content_type_detection,omitempty"` // Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always true, if the document is sent as part of an album.
}

type InputMediaPhoto

type InputMediaPhoto struct {
	Type            string           `json:"type"`                       // Type of the result, must be photo
	Media           string           `json:"media"`                      // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
	Caption         string           `json:"caption,omitempty"`          // Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing
	ParseMode       string           `json:"parse_mode,omitempty"`       // Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
	CaptionEntities []*MessageEntity `json:"caption_entities,omitempty"` // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
}

type InputMediaVideo

type InputMediaVideo struct {
	Type              string           `json:"type"`                         // Type of the result, must be video
	Media             string           `json:"media"`                        // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
	Thumb             interface{}      `json:"thumb,omitempty"`              // Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
	Caption           string           `json:"caption,omitempty"`            // Optional. Caption of the video to be sent, 0-1024 characters after entities parsing
	ParseMode         string           `json:"parse_mode,omitempty"`         // Optional. Mode for parsing entities in the video caption. See formatting options for more details.
	CaptionEntities   []*MessageEntity `json:"caption_entities,omitempty"`   // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	Width             int              `json:"width,omitempty"`              // Optional. Video width
	Height            int              `json:"height,omitempty"`             // Optional. Video height
	Duration          int              `json:"duration,omitempty"`           // Optional. Video duration
	SupportsStreaming bool             `json:"supports_streaming,omitempty"` // Optional. Pass True, if the uploaded video is suitable for streaming
}

type InputTextMessageContent

type InputTextMessageContent struct {
	MessageText           string           `json:"message_text"`                       // Text of the message to be sent, 1-4096 characters
	ParseMode             string           `json:"parse_mode,omitempty"`               // Optional. Mode for parsing entities in the message text. See formatting options for more details.
	Entities              []*MessageEntity `json:"entities,omitempty"`                 // Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
	DisableWebPagePreview bool             `json:"disable_web_page_preview,omitempty"` // Optional. Disables link previews for links in the sent message
}

type InputVenueMessageContent

type InputVenueMessageContent struct {
	Latitude        float64 `json:"latitude"`                    // Latitude of the venue in degrees
	Longitude       float64 `json:"longitude"`                   // Longitude of the venue in degrees
	Title           string  `json:"title"`                       // Name of the venue
	Address         string  `json:"address"`                     // Address of the venue
	FoursquareId    string  `json:"foursquare_id,omitempty"`     // Optional. Foursquare identifier of the venue, if known
	FoursquareType  string  `json:"foursquare_type,omitempty"`   // Optional. Foursquare type of the venue, if known. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
	GooglePlaceId   string  `json:"google_place_id,omitempty"`   // Optional. Google Places identifier of the venue
	GooglePlaceType string  `json:"google_place_type,omitempty"` // Optional. Google Places type of the venue. (See supported types.)
}

type Invoice

type Invoice struct {
	Title          string `json:"title"`           // Product name
	Description    string `json:"description"`     // Product description
	StartParameter string `json:"start_parameter"` // Unique bot deep-linking parameter that can be used to generate this invoice
	Currency       string `json:"currency"`        // Three-letter ISO 4217 currency code
	TotalAmount    int    `json:"total_amount"`    // Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
}

type KeyboardButton

type KeyboardButton struct {
	Text            string                  `json:"text"`                       // Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed
	RequestContact  bool                    `json:"request_contact,omitempty"`  // Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only
	RequestLocation bool                    `json:"request_location,omitempty"` // Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only
	RequestPoll     *KeyboardButtonPollType `json:"request_poll,omitempty"`     // Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only
}

type KeyboardButtonPollType

type KeyboardButtonPollType struct {
	Type string `json:"type,omitempty"` // Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.
}

type LabeledPrice

type LabeledPrice struct {
	Label  string `json:"label"`  // Portion label
	Amount int    `json:"amount"` // Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
}

type LeaveChatParams

type LeaveChatParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
}

type Location

type Location struct {
	Longitude            float64 `json:"longitude"`                        // Longitude as defined by sender
	Latitude             float64 `json:"latitude"`                         // Latitude as defined by sender
	HorizontalAccuracy   float64 `json:"horizontal_accuracy,omitempty"`    // Optional. The radius of uncertainty for the location, measured in meters; 0-1500
	LivePeriod           int     `json:"live_period,omitempty"`            // Optional. Time relative to the message sending date, during which the location can be updated, in seconds. For active live locations only.
	Heading              int     `json:"heading,omitempty"`                // Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
	ProximityAlertRadius int     `json:"proximity_alert_radius,omitempty"` // Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
}

type LoginUrl

type LoginUrl struct {
	Url                string `json:"url"`                            // An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
	ForwardText        string `json:"forward_text,omitempty"`         // Optional. New text of the button in forwarded messages.
	BotUsername        string `json:"bot_username,omitempty"`         // Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.
	RequestWriteAccess bool   `json:"request_write_access,omitempty"` // Optional. Pass True to request the permission for your bot to send messages to the user.
}

type MaskPosition

type MaskPosition struct {
	Point  string  `json:"point"`   // The part of the face relative to which the mask should be placed. One of "forehead", "eyes", "mouth", or "chin".
	XShift float64 `json:"x_shift"` // Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.
	YShift float64 `json:"y_shift"` // Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.
	Scale  float64 `json:"scale"`   // Mask scaling coefficient. For example, 2.0 means double size.
}

type Message

type Message struct {
	MessageId                     int                            `json:"message_id"`                                  // Unique message identifier inside this chat
	From                          *User                          `json:"from,omitempty"`                              // Optional. Sender, empty for messages sent to channels
	SenderChat                    *Chat                          `json:"sender_chat,omitempty"`                       // Optional. Sender of the message, sent on behalf of a chat. The channel itself for channel messages. The supergroup itself for messages from anonymous group administrators. The linked channel for messages automatically forwarded to the discussion group
	Date                          int                            `json:"date"`                                        // Date the message was sent in Unix time
	Chat                          *Chat                          `json:"chat"`                                        // Conversation the message belongs to
	ForwardFrom                   *User                          `json:"forward_from,omitempty"`                      // Optional. For forwarded messages, sender of the original message
	ForwardFromChat               *Chat                          `json:"forward_from_chat,omitempty"`                 // Optional. For messages forwarded from channels or from anonymous administrators, information about the original sender chat
	ForwardFromMessageId          int                            `json:"forward_from_message_id,omitempty"`           // Optional. For messages forwarded from channels, identifier of the original message in the channel
	ForwardSignature              string                         `json:"forward_signature,omitempty"`                 // Optional. For messages forwarded from channels, signature of the post author if present
	ForwardSenderName             string                         `json:"forward_sender_name,omitempty"`               // Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages
	ForwardDate                   int                            `json:"forward_date,omitempty"`                      // Optional. For forwarded messages, date the original message was sent in Unix time
	ReplyToMessage                *Message                       `json:"reply_to_message,omitempty"`                  // Optional. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
	ViaBot                        *User                          `json:"via_bot,omitempty"`                           // Optional. Bot through which the message was sent
	EditDate                      int                            `json:"edit_date,omitempty"`                         // Optional. Date the message was last edited in Unix time
	MediaGroupId                  string                         `json:"media_group_id,omitempty"`                    // Optional. The unique identifier of a media message group this message belongs to
	AuthorSignature               string                         `json:"author_signature,omitempty"`                  // Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator
	Text                          string                         `json:"text,omitempty"`                              // Optional. For text messages, the actual UTF-8 text of the message, 0-4096 characters
	Entities                      []*MessageEntity               `json:"entities,omitempty"`                          // Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
	Animation                     *Animation                     `json:"animation,omitempty"`                         // Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set
	Audio                         *Audio                         `json:"audio,omitempty"`                             // Optional. Message is an audio file, information about the file
	Document                      *Document                      `json:"document,omitempty"`                          // Optional. Message is a general file, information about the file
	Photo                         []*PhotoSize                   `json:"photo,omitempty"`                             // Optional. Message is a photo, available sizes of the photo
	Sticker                       *Sticker                       `json:"sticker,omitempty"`                           // Optional. Message is a sticker, information about the sticker
	Video                         *Video                         `json:"video,omitempty"`                             // Optional. Message is a video, information about the video
	VideoNote                     *VideoNote                     `json:"video_note,omitempty"`                        // Optional. Message is a video note, information about the video message
	Voice                         *Voice                         `json:"voice,omitempty"`                             // Optional. Message is a voice message, information about the file
	Caption                       string                         `json:"caption,omitempty"`                           // Optional. Caption for the animation, audio, document, photo, video or voice, 0-1024 characters
	CaptionEntities               []*MessageEntity               `json:"caption_entities,omitempty"`                  // Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption
	Contact                       *Contact                       `json:"contact,omitempty"`                           // Optional. Message is a shared contact, information about the contact
	Dice                          *Dice                          `json:"dice,omitempty"`                              // Optional. Message is a dice with random value
	Game                          *Game                          `json:"game,omitempty"`                              // Optional. Message is a game, information about the game. More about games »
	Poll                          *Poll                          `json:"poll,omitempty"`                              // Optional. Message is a native poll, information about the poll
	Venue                         *Venue                         `json:"venue,omitempty"`                             // Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set
	Location                      *Location                      `json:"location,omitempty"`                          // Optional. Message is a shared location, information about the location
	NewChatMembers                []*User                        `json:"new_chat_members,omitempty"`                  // Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
	LeftChatMember                *User                          `json:"left_chat_member,omitempty"`                  // Optional. A member was removed from the group, information about them (this member may be the bot itself)
	NewChatTitle                  string                         `json:"new_chat_title,omitempty"`                    // Optional. A chat title was changed to this value
	NewChatPhoto                  []*PhotoSize                   `json:"new_chat_photo,omitempty"`                    // Optional. A chat photo was change to this value
	DeleteChatPhoto               bool                           `json:"delete_chat_photo,omitempty"`                 // Optional. Service message: the chat photo was deleted
	GroupChatCreated              bool                           `json:"group_chat_created,omitempty"`                // Optional. Service message: the group has been created
	SupergroupChatCreated         bool                           `json:"supergroup_chat_created,omitempty"`           // Optional. Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.
	ChannelChatCreated            bool                           `json:"channel_chat_created,omitempty"`              // Optional. Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.
	MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed,omitempty"` // Optional. Service message: auto-delete timer settings changed in the chat
	MigrateToChatId               int                            `json:"migrate_to_chat_id,omitempty"`                // Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
	MigrateFromChatId             int                            `json:"migrate_from_chat_id,omitempty"`              // Optional. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
	PinnedMessage                 *Message                       `json:"pinned_message,omitempty"`                    // Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.
	Invoice                       *Invoice                       `json:"invoice,omitempty"`                           // Optional. Message is an invoice for a payment, information about the invoice. More about payments »
	SuccessfulPayment             *SuccessfulPayment             `json:"successful_payment,omitempty"`                // Optional. Message is a service message about a successful payment, information about the payment. More about payments »
	ConnectedWebsite              string                         `json:"connected_website,omitempty"`                 // Optional. The domain name of the website on which the user has logged in. More about Telegram Login »
	PassportData                  *PassportData                  `json:"passport_data,omitempty"`                     // Optional. Telegram Passport data
	ProximityAlertTriggered       *ProximityAlertTriggered       `json:"proximity_alert_triggered,omitempty"`         // Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
	VoiceChatScheduled            *VoiceChatScheduled            `json:"voice_chat_scheduled,omitempty"`              // Optional. Service message: voice chat scheduled
	VoiceChatStarted              *VoiceChatStarted              `json:"voice_chat_started,omitempty"`                // Optional. Service message: voice chat started
	VoiceChatEnded                *VoiceChatEnded                `json:"voice_chat_ended,omitempty"`                  // Optional. Service message: voice chat ended
	VoiceChatParticipantsInvited  *VoiceChatParticipantsInvited  `json:"voice_chat_participants_invited,omitempty"`   // Optional. Service message: new participants invited to a voice chat
	ReplyMarkup                   *InlineKeyboardMarkup          `json:"reply_markup,omitempty"`                      // Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
}

func (*Message) NewEditMessageText

func (message *Message) NewEditMessageText(text string, replyMarkup *InlineKeyboardMarkup) EditMessageTextParams

func (*Message) NewSendMessage

func (message *Message) NewSendMessage(text string, replyMarkup interface{}) SendMessageParams

type MessageAutoDeleteTimerChanged

type MessageAutoDeleteTimerChanged struct {
	MessageAutoDeleteTime int `json:"message_auto_delete_time"` // New auto-delete time for messages in the chat
}

type MessageEntity

type MessageEntity struct {
	Type     string `json:"type"`               // Type of the entity. Can be "mention" (@username), "hashtag" (#hashtag), "cashtag" ($USD), "bot_command" (/start@jobs_bot), "url" (https://telegram.org), "email" (do-not-reply@telegram.org), "phone_number" (+1-212-555-0123), "bold" (bold text), "italic" (italic text), "underline" (underlined text), "strikethrough" (strikethrough text), "code" (monowidth string), "pre" (monowidth block), "text_link" (for clickable text URLs), "text_mention" (for users without usernames)
	Offset   int    `json:"offset"`             // Offset in UTF-16 code units to the start of the entity
	Length   int    `json:"length"`             // Length of the entity in UTF-16 code units
	Url      string `json:"url,omitempty"`      // Optional. For "text_link" only, url that will be opened after user taps on the text
	User     *User  `json:"user,omitempty"`     // Optional. For "text_mention" only, the mentioned user
	Language string `json:"language,omitempty"` // Optional. For "pre" only, the programming language of the entity text
}

type MessageId

type MessageId struct {
	MessageId int `json:"message_id"` // Unique message identifier
}

type OrderInfo

type OrderInfo struct {
	Name            string           `json:"name,omitempty"`             // Optional. User name
	PhoneNumber     string           `json:"phone_number,omitempty"`     // Optional. User's phone number
	Email           string           `json:"email,omitempty"`            // Optional. User email
	ShippingAddress *ShippingAddress `json:"shipping_address,omitempty"` // Optional. User shipping address
}

type PassportData

type PassportData struct {
	Data        []*EncryptedPassportElement `json:"data"`        // Array with information about documents and other Telegram Passport elements that was shared with the bot
	Credentials *EncryptedCredentials       `json:"credentials"` // Encrypted credentials required to decrypt the data
}

type PassportElementErrorDataField

type PassportElementErrorDataField struct {
	Source    string `json:"source"`     // Error source, must be data
	Type      string `json:"type"`       // The section of the user's Telegram Passport which has the error, one of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address"
	FieldName string `json:"field_name"` // Name of the data field which has the error
	DataHash  string `json:"data_hash"`  // Base64-encoded data hash
	Message   string `json:"message"`    // Error message
}

type PassportElementErrorFile

type PassportElementErrorFile struct {
	Source   string `json:"source"`    // Error source, must be file
	Type     string `json:"type"`      // The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"
	FileHash string `json:"file_hash"` // Base64-encoded file hash
	Message  string `json:"message"`   // Error message
}

type PassportElementErrorFiles

type PassportElementErrorFiles struct {
	Source     string   `json:"source"`      // Error source, must be files
	Type       string   `json:"type"`        // The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"
	FileHashes []string `json:"file_hashes"` // List of base64-encoded file hashes
	Message    string   `json:"message"`     // Error message
}

type PassportElementErrorFrontSide

type PassportElementErrorFrontSide struct {
	Source   string `json:"source"`    // Error source, must be front_side
	Type     string `json:"type"`      // The section of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport"
	FileHash string `json:"file_hash"` // Base64-encoded hash of the file with the front side of the document
	Message  string `json:"message"`   // Error message
}

type PassportElementErrorReverseSide

type PassportElementErrorReverseSide struct {
	Source   string `json:"source"`    // Error source, must be reverse_side
	Type     string `json:"type"`      // The section of the user's Telegram Passport which has the issue, one of "driver_license", "identity_card"
	FileHash string `json:"file_hash"` // Base64-encoded hash of the file with the reverse side of the document
	Message  string `json:"message"`   // Error message
}

type PassportElementErrorSelfie

type PassportElementErrorSelfie struct {
	Source   string `json:"source"`    // Error source, must be selfie
	Type     string `json:"type"`      // The section of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport"
	FileHash string `json:"file_hash"` // Base64-encoded hash of the file with the selfie
	Message  string `json:"message"`   // Error message
}

type PassportElementErrorTranslationFile

type PassportElementErrorTranslationFile struct {
	Source   string `json:"source"`    // Error source, must be translation_file
	Type     string `json:"type"`      // Type of element of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"
	FileHash string `json:"file_hash"` // Base64-encoded file hash
	Message  string `json:"message"`   // Error message
}

type PassportElementErrorTranslationFiles

type PassportElementErrorTranslationFiles struct {
	Source     string   `json:"source"`      // Error source, must be translation_files
	Type       string   `json:"type"`        // Type of element of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"
	FileHashes []string `json:"file_hashes"` // List of base64-encoded file hashes
	Message    string   `json:"message"`     // Error message
}

type PassportElementErrorUnspecified

type PassportElementErrorUnspecified struct {
	Source      string `json:"source"`       // Error source, must be unspecified
	Type        string `json:"type"`         // Type of element of the user's Telegram Passport which has the issue
	ElementHash string `json:"element_hash"` // Base64-encoded element hash
	Message     string `json:"message"`      // Error message
}

type PassportFile

type PassportFile struct {
	FileId       string `json:"file_id"`        // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string `json:"file_unique_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	FileSize     int    `json:"file_size"`      // File size
	FileDate     int    `json:"file_date"`      // Unix time when the file was uploaded
}

type PhotoSize

type PhotoSize struct {
	FileId       string `json:"file_id"`             // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string `json:"file_unique_id"`      // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	Width        int    `json:"width"`               // Photo width
	Height       int    `json:"height"`              // Photo height
	FileSize     int    `json:"file_size,omitempty"` // Optional. File size
}

type PinChatMessageParams

type PinChatMessageParams struct {
	ChatId              interface{} `json:"chat_id"`                        // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId           int         `json:"message_id"`                     // Identifier of a message to pin
	DisableNotification bool        `json:"disable_notification,omitempty"` // Optional. Pass True, if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats.
}

type Poll

type Poll struct {
	Id                    string           `json:"id"`                             // Unique poll identifier
	Question              string           `json:"question"`                       // Poll question, 1-300 characters
	Options               []*PollOption    `json:"options"`                        // List of poll options
	TotalVoterCount       int              `json:"total_voter_count"`              // Total number of users that voted in the poll
	IsClosed              bool             `json:"is_closed"`                      // True, if the poll is closed
	IsAnonymous           bool             `json:"is_anonymous"`                   // True, if the poll is anonymous
	Type                  string           `json:"type"`                           // Poll type, currently can be "regular" or "quiz"
	AllowsMultipleAnswers bool             `json:"allows_multiple_answers"`        // True, if the poll allows multiple answers
	CorrectOptionId       int              `json:"correct_option_id,omitempty"`    // Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.
	Explanation           string           `json:"explanation,omitempty"`          // Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters
	ExplanationEntities   []*MessageEntity `json:"explanation_entities,omitempty"` // Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation
	OpenPeriod            int              `json:"open_period,omitempty"`          // Optional. Amount of time in seconds the poll will be active after creation
	CloseDate             int              `json:"close_date,omitempty"`           // Optional. Point in time (Unix timestamp) when the poll will be automatically closed
}

type PollAnswer

type PollAnswer struct {
	PollId    string `json:"poll_id"`    // Unique poll identifier
	User      *User  `json:"user"`       // The user, who changed the answer to the poll
	OptionIds []int  `json:"option_ids"` // 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
}

type PollOption

type PollOption struct {
	Text       string `json:"text"`        // Option text, 1-100 characters
	VoterCount int    `json:"voter_count"` // Number of users that voted for this option
}

type PreCheckoutQuery

type PreCheckoutQuery struct {
	Id               string     `json:"id"`                           // Unique query identifier
	From             *User      `json:"from"`                         // User who sent the query
	Currency         string     `json:"currency"`                     // Three-letter ISO 4217 currency code
	TotalAmount      int        `json:"total_amount"`                 // Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
	InvoicePayload   string     `json:"invoice_payload"`              // Bot specified invoice payload
	ShippingOptionId string     `json:"shipping_option_id,omitempty"` // Optional. Identifier of the shipping option chosen by the user
	OrderInfo        *OrderInfo `json:"order_info,omitempty"`         // Optional. Order info provided by the user
}

type PromoteChatMemberParams

type PromoteChatMemberParams struct {
	ChatId              interface{} `json:"chat_id"`                          // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	UserId              int         `json:"user_id"`                          // Unique identifier of the target user
	IsAnonymous         bool        `json:"is_anonymous,omitempty"`           // Optional. Pass True, if the administrator's presence in the chat is hidden
	CanManageChat       bool        `json:"can_manage_chat,omitempty"`        // Optional. Pass True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege
	CanPostMessages     bool        `json:"can_post_messages,omitempty"`      // Optional. Pass True, if the administrator can create channel posts, channels only
	CanEditMessages     bool        `json:"can_edit_messages,omitempty"`      // Optional. Pass True, if the administrator can edit messages of other users and can pin messages, channels only
	CanDeleteMessages   bool        `json:"can_delete_messages,omitempty"`    // Optional. Pass True, if the administrator can delete messages of other users
	CanManageVoiceChats bool        `json:"can_manage_voice_chats,omitempty"` // Optional. Pass True, if the administrator can manage voice chats
	CanRestrictMembers  bool        `json:"can_restrict_members,omitempty"`   // Optional. Pass True, if the administrator can restrict, ban or unban chat members
	CanPromoteMembers   bool        `json:"can_promote_members,omitempty"`    // Optional. Pass True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)
	CanChangeInfo       bool        `json:"can_change_info,omitempty"`        // Optional. Pass True, if the administrator can change chat title, photo and other settings
	CanInviteUsers      bool        `json:"can_invite_users,omitempty"`       // Optional. Pass True, if the administrator can invite new users to the chat
	CanPinMessages      bool        `json:"can_pin_messages,omitempty"`       // Optional. Pass True, if the administrator can pin messages, supergroups only
}

type ProximityAlertTriggered

type ProximityAlertTriggered struct {
	Traveler *User `json:"traveler"` // User that triggered the alert
	Watcher  *User `json:"watcher"`  // User that set the alert
	Distance int   `json:"distance"` // The distance between the users
}

type ReplyKeyboardMarkup

type ReplyKeyboardMarkup struct {
	Keyboard              [][]*KeyboardButton `json:"keyboard"`                          // Array of button rows, each represented by an Array of KeyboardButton objects
	ResizeKeyboard        bool                `json:"resize_keyboard,omitempty"`         // Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
	OneTimeKeyboard       bool                `json:"one_time_keyboard,omitempty"`       // Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
	InputFieldPlaceholder string              `json:"input_field_placeholder,omitempty"` // Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters
	Selective             bool                `json:"selective,omitempty"`               // Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.
}

type ReplyKeyboardRemove

type ReplyKeyboardRemove struct {
	RemoveKeyboard bool `json:"remove_keyboard"`     // Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
	Selective      bool `json:"selective,omitempty"` // Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet.
}

type ResponseParameters

type ResponseParameters struct {
	MigrateToChatId int `json:"migrate_to_chat_id,omitempty"` // Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
	RetryAfter      int `json:"retry_after,omitempty"`        // Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
}

type RestrictChatMemberParams

type RestrictChatMemberParams struct {
	ChatId      interface{}      `json:"chat_id"`              // Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
	UserId      int              `json:"user_id"`              // Unique identifier of the target user
	Permissions *ChatPermissions `json:"permissions"`          // A JSON-serialized object for new user permissions
	UntilDate   int              `json:"until_date,omitempty"` // Optional. Date when restrictions will be lifted for the user, unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever
}

type RevokeChatInviteLinkParams

type RevokeChatInviteLinkParams struct {
	ChatId     interface{} `json:"chat_id"`     // Unique identifier of the target chat or username of the target channel (in the format @channelusername)
	InviteLink string      `json:"invite_link"` // The invite link to revoke
}

type SendAnimationParams

type SendAnimationParams struct {
	ChatId                   interface{}      `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Animation                interface{}      `json:"animation"`                             // Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More info on Sending Files »
	Duration                 int              `json:"duration,omitempty"`                    // Optional. Duration of sent animation in seconds
	Width                    int              `json:"width,omitempty"`                       // Optional. Animation width
	Height                   int              `json:"height,omitempty"`                      // Optional. Animation height
	Thumb                    interface{}      `json:"thumb,omitempty"`                       // Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
	Caption                  string           `json:"caption,omitempty"`                     // Optional. Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing
	ParseMode                string           `json:"parse_mode,omitempty"`                  // Optional. Mode for parsing entities in the animation caption. See formatting options for more details.
	CaptionEntities          []*MessageEntity `json:"caption_entities,omitempty"`            // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	DisableNotification      bool             `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int              `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool             `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{}      `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendAudioParams

type SendAudioParams struct {
	ChatId                   interface{}      `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Audio                    interface{}      `json:"audio"`                                 // Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
	Caption                  string           `json:"caption,omitempty"`                     // Optional. Audio caption, 0-1024 characters after entities parsing
	ParseMode                string           `json:"parse_mode,omitempty"`                  // Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
	CaptionEntities          []*MessageEntity `json:"caption_entities,omitempty"`            // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	Duration                 int              `json:"duration,omitempty"`                    // Optional. Duration of the audio in seconds
	Performer                string           `json:"performer,omitempty"`                   // Optional. Performer
	Title                    string           `json:"title,omitempty"`                       // Optional. Track name
	Thumb                    interface{}      `json:"thumb,omitempty"`                       // Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
	DisableNotification      bool             `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int              `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool             `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{}      `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendChatActionParams

type SendChatActionParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Action string      `json:"action"`  // Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, find_location for location data, record_video_note or upload_video_note for video notes.
}

type SendContactParams

type SendContactParams struct {
	ChatId                   interface{} `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	PhoneNumber              string      `json:"phone_number"`                          // Contact's phone number
	FirstName                string      `json:"first_name"`                            // Contact's first name
	LastName                 string      `json:"last_name,omitempty"`                   // Optional. Contact's last name
	Vcard                    string      `json:"vcard,omitempty"`                       // Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
	DisableNotification      bool        `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int         `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool        `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{} `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove keyboard or to force a reply from the user.
}

type SendDiceParams

type SendDiceParams struct {
	ChatId                   interface{} `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Emoji                    string      `json:"emoji,omitempty"`                       // Optional. Emoji on which the dice throw animation is based. Currently, must be one of "", "", "", "", "", or "". Dice can have values 1-6 for "", "" and "", values 1-5 for "" and "", and values 1-64 for "". Defaults to ""
	DisableNotification      bool        `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int         `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool        `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{} `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendDocumentParams

type SendDocumentParams struct {
	ChatId                      interface{}      `json:"chat_id"`                                  // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Document                    interface{}      `json:"document"`                                 // File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
	Thumb                       interface{}      `json:"thumb,omitempty"`                          // Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
	Caption                     string           `json:"caption,omitempty"`                        // Optional. Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing
	ParseMode                   string           `json:"parse_mode,omitempty"`                     // Optional. Mode for parsing entities in the document caption. See formatting options for more details.
	CaptionEntities             []*MessageEntity `json:"caption_entities,omitempty"`               // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	DisableContentTypeDetection bool             `json:"disable_content_type_detection,omitempty"` // Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data
	DisableNotification         bool             `json:"disable_notification,omitempty"`           // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId            int              `json:"reply_to_message_id,omitempty"`            // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply    bool             `json:"allow_sending_without_reply,omitempty"`    // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup                 interface{}      `json:"reply_markup,omitempty"`                   // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendGameParams

type SendGameParams struct {
	ChatId                   int                   `json:"chat_id"`                               // Unique identifier for the target chat
	GameShortName            string                `json:"game_short_name"`                       // Short name of the game, serves as the unique identifier for the game. Set up your games via Botfather.
	DisableNotification      bool                  `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int                   `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool                  `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              *InlineKeyboardMarkup `json:"reply_markup,omitempty"`                // Optional. A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game.
}

type SendInvoiceParams

type SendInvoiceParams struct {
	ChatId                    interface{}           `json:"chat_id"`                                 // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Title                     string                `json:"title"`                                   // Product name, 1-32 characters
	Description               string                `json:"description"`                             // Product description, 1-255 characters
	Payload                   string                `json:"payload"`                                 // Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
	ProviderToken             string                `json:"provider_token"`                          // Payments provider token, obtained via Botfather
	Currency                  string                `json:"currency"`                                // Three-letter ISO 4217 currency code, see more on currencies
	Prices                    []*LabeledPrice       `json:"prices"`                                  // Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)
	MaxTipAmount              int                   `json:"max_tip_amount,omitempty"`                // Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0
	SuggestedTipAmounts       []int                 `json:"suggested_tip_amounts,omitempty"`         // Optional. A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.
	StartParameter            string                `json:"start_parameter,omitempty"`               // Optional. Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. If non-empty, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter
	ProviderData              string                `json:"provider_data,omitempty"`                 // Optional. A JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.
	PhotoUrl                  string                `json:"photo_url,omitempty"`                     // Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.
	PhotoSize                 int                   `json:"photo_size,omitempty"`                    // Optional. Photo size
	PhotoWidth                int                   `json:"photo_width,omitempty"`                   // Optional. Photo width
	PhotoHeight               int                   `json:"photo_height,omitempty"`                  // Optional. Photo height
	NeedName                  bool                  `json:"need_name,omitempty"`                     // Optional. Pass True, if you require the user's full name to complete the order
	NeedPhoneNumber           bool                  `json:"need_phone_number,omitempty"`             // Optional. Pass True, if you require the user's phone number to complete the order
	NeedEmail                 bool                  `json:"need_email,omitempty"`                    // Optional. Pass True, if you require the user's email address to complete the order
	NeedShippingAddress       bool                  `json:"need_shipping_address,omitempty"`         // Optional. Pass True, if you require the user's shipping address to complete the order
	SendPhoneNumberToProvider bool                  `json:"send_phone_number_to_provider,omitempty"` // Optional. Pass True, if user's phone number should be sent to provider
	SendEmailToProvider       bool                  `json:"send_email_to_provider,omitempty"`        // Optional. Pass True, if user's email address should be sent to provider
	IsFlexible                bool                  `json:"is_flexible,omitempty"`                   // Optional. Pass True, if the final price depends on the shipping method
	DisableNotification       bool                  `json:"disable_notification,omitempty"`          // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId          int                   `json:"reply_to_message_id,omitempty"`           // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply  bool                  `json:"allow_sending_without_reply,omitempty"`   // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup               *InlineKeyboardMarkup `json:"reply_markup,omitempty"`                  // Optional. A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button.
}

type SendLocationParams

type SendLocationParams struct {
	ChatId                   interface{} `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Latitude                 float64     `json:"latitude"`                              // Latitude of the location
	Longitude                float64     `json:"longitude"`                             // Longitude of the location
	HorizontalAccuracy       float64     `json:"horizontal_accuracy,omitempty"`         // Optional. The radius of uncertainty for the location, measured in meters; 0-1500
	LivePeriod               int         `json:"live_period,omitempty"`                 // Optional. Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.
	Heading                  int         `json:"heading,omitempty"`                     // Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
	ProximityAlertRadius     int         `json:"proximity_alert_radius,omitempty"`      // Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
	DisableNotification      bool        `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int         `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool        `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{} `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendMediaGroupParams

type SendMediaGroupParams struct {
	ChatId                   interface{}   `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Media                    []interface{} `json:"media"`                                 // A JSON-serialized array describing messages to be sent, must include 2-10 items
	DisableNotification      bool          `json:"disable_notification,omitempty"`        // Optional. Sends messages silently. Users will receive a notification with no sound.
	ReplyToMessageId         int           `json:"reply_to_message_id,omitempty"`         // Optional. If the messages are a reply, ID of the original message
	AllowSendingWithoutReply bool          `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
}

type SendMessageParams

type SendMessageParams struct {
	ChatId                   interface{}      `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Text                     string           `json:"text"`                                  // Text of the message to be sent, 1-4096 characters after entities parsing
	ParseMode                string           `json:"parse_mode,omitempty"`                  // Optional. Mode for parsing entities in the message text. See formatting options for more details.
	Entities                 []*MessageEntity `json:"entities,omitempty"`                    // Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
	DisableWebPagePreview    bool             `json:"disable_web_page_preview,omitempty"`    // Optional. Disables link previews for links in this message
	DisableNotification      bool             `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int              `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool             `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{}      `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

func NewSendMessage

func NewSendMessage(chatId int, text string, replyMarkup interface{}) SendMessageParams

type SendPhotoParams

type SendPhotoParams struct {
	ChatId                   interface{}      `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Photo                    interface{}      `json:"photo"`                                 // Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More info on Sending Files »
	Caption                  string           `json:"caption,omitempty"`                     // Optional. Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing
	ParseMode                string           `json:"parse_mode,omitempty"`                  // Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
	CaptionEntities          []*MessageEntity `json:"caption_entities,omitempty"`            // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	DisableNotification      bool             `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int              `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool             `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{}      `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendPollParams

type SendPollParams struct {
	ChatId                   interface{}      `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Question                 string           `json:"question"`                              // Poll question, 1-300 characters
	Options                  []string         `json:"options"`                               // A JSON-serialized list of answer options, 2-10 strings 1-100 characters each
	IsAnonymous              bool             `json:"is_anonymous,omitempty"`                // Optional. True, if the poll needs to be anonymous, defaults to True
	Type                     string           `json:"type,omitempty"`                        // Optional. Poll type, "quiz" or "regular", defaults to "regular"
	AllowsMultipleAnswers    bool             `json:"allows_multiple_answers,omitempty"`     // Optional. True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False
	CorrectOptionId          int              `json:"correct_option_id,omitempty"`           // Optional. 0-based identifier of the correct answer option, required for polls in quiz mode
	Explanation              string           `json:"explanation,omitempty"`                 // Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing
	ExplanationParseMode     string           `json:"explanation_parse_mode,omitempty"`      // Optional. Mode for parsing entities in the explanation. See formatting options for more details.
	ExplanationEntities      []*MessageEntity `json:"explanation_entities,omitempty"`        // Optional. List of special entities that appear in the poll explanation, which can be specified instead of parse_mode
	OpenPeriod               int              `json:"open_period,omitempty"`                 // Optional. Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.
	CloseDate                int              `json:"close_date,omitempty"`                  // Optional. Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future. Can't be used together with open_period.
	IsClosed                 bool             `json:"is_closed,omitempty"`                   // Optional. Pass True, if the poll needs to be immediately closed. This can be useful for poll preview.
	DisableNotification      bool             `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int              `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool             `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{}      `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendStickerParams

type SendStickerParams struct {
	ChatId                   interface{} `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Sticker                  interface{} `json:"sticker"`                               // Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
	DisableNotification      bool        `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int         `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool        `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{} `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendVenueParams

type SendVenueParams struct {
	ChatId                   interface{} `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Latitude                 float64     `json:"latitude"`                              // Latitude of the venue
	Longitude                float64     `json:"longitude"`                             // Longitude of the venue
	Title                    string      `json:"title"`                                 // Name of the venue
	Address                  string      `json:"address"`                               // Address of the venue
	FoursquareId             string      `json:"foursquare_id,omitempty"`               // Optional. Foursquare identifier of the venue
	FoursquareType           string      `json:"foursquare_type,omitempty"`             // Optional. Foursquare type of the venue, if known. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
	GooglePlaceId            string      `json:"google_place_id,omitempty"`             // Optional. Google Places identifier of the venue
	GooglePlaceType          string      `json:"google_place_type,omitempty"`           // Optional. Google Places type of the venue. (See supported types.)
	DisableNotification      bool        `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int         `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool        `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{} `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendVideoNoteParams

type SendVideoNoteParams struct {
	ChatId                   interface{} `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	VideoNote                interface{} `json:"video_note"`                            // Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. More info on Sending Files ». Sending video notes by a URL is currently unsupported
	Duration                 int         `json:"duration,omitempty"`                    // Optional. Duration of sent video in seconds
	Length                   int         `json:"length,omitempty"`                      // Optional. Video width and height, i.e. diameter of the video message
	Thumb                    interface{} `json:"thumb,omitempty"`                       // Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
	DisableNotification      bool        `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int         `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool        `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{} `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendVideoParams

type SendVideoParams struct {
	ChatId                   interface{}      `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Video                    interface{}      `json:"video"`                                 // Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More info on Sending Files »
	Duration                 int              `json:"duration,omitempty"`                    // Optional. Duration of sent video in seconds
	Width                    int              `json:"width,omitempty"`                       // Optional. Video width
	Height                   int              `json:"height,omitempty"`                      // Optional. Video height
	Thumb                    interface{}      `json:"thumb,omitempty"`                       // Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
	Caption                  string           `json:"caption,omitempty"`                     // Optional. Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing
	ParseMode                string           `json:"parse_mode,omitempty"`                  // Optional. Mode for parsing entities in the video caption. See formatting options for more details.
	CaptionEntities          []*MessageEntity `json:"caption_entities,omitempty"`            // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	SupportsStreaming        bool             `json:"supports_streaming,omitempty"`          // Optional. Pass True, if the uploaded video is suitable for streaming
	DisableNotification      bool             `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int              `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool             `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{}      `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SendVoiceParams

type SendVoiceParams struct {
	ChatId                   interface{}      `json:"chat_id"`                               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Voice                    interface{}      `json:"voice"`                                 // Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
	Caption                  string           `json:"caption,omitempty"`                     // Optional. Voice message caption, 0-1024 characters after entities parsing
	ParseMode                string           `json:"parse_mode,omitempty"`                  // Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.
	CaptionEntities          []*MessageEntity `json:"caption_entities,omitempty"`            // Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
	Duration                 int              `json:"duration,omitempty"`                    // Optional. Duration of the voice message in seconds
	DisableNotification      bool             `json:"disable_notification,omitempty"`        // Optional. Sends the message silently. Users will receive a notification with no sound.
	ReplyToMessageId         int              `json:"reply_to_message_id,omitempty"`         // Optional. If the message is a reply, ID of the original message
	AllowSendingWithoutReply bool             `json:"allow_sending_without_reply,omitempty"` // Optional. Pass True, if the message should be sent even if the specified replied-to message is not found
	ReplyMarkup              interface{}      `json:"reply_markup,omitempty"`                // Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
}

type SetChatAdministratorCustomTitleParams

type SetChatAdministratorCustomTitleParams struct {
	ChatId      interface{} `json:"chat_id"`      // Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
	UserId      int         `json:"user_id"`      // Unique identifier of the target user
	CustomTitle string      `json:"custom_title"` // New custom title for the administrator; 0-16 characters, emoji are not allowed
}

type SetChatDescriptionParams

type SetChatDescriptionParams struct {
	ChatId      interface{} `json:"chat_id"`               // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Description string      `json:"description,omitempty"` // Optional. New chat description, 0-255 characters
}

type SetChatPermissionsParams

type SetChatPermissionsParams struct {
	ChatId      interface{}      `json:"chat_id"`     // Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
	Permissions *ChatPermissions `json:"permissions"` // New default chat permissions
}

type SetChatPhotoParams

type SetChatPhotoParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Photo  interface{} `json:"photo"`   // New chat photo, uploaded using multipart/form-data
}

type SetChatStickerSetParams

type SetChatStickerSetParams struct {
	ChatId         interface{} `json:"chat_id"`          // Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
	StickerSetName string      `json:"sticker_set_name"` // Name of the sticker set to be set as the group sticker set
}

type SetChatTitleParams

type SetChatTitleParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	Title  string      `json:"title"`   // New chat title, 1-255 characters
}

type SetGameScoreParams

type SetGameScoreParams struct {
	UserId             int    `json:"user_id"`                        // User identifier
	Score              int    `json:"score"`                          // New score, must be non-negative
	Force              bool   `json:"force,omitempty"`                // Optional. Pass True, if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters
	DisableEditMessage bool   `json:"disable_edit_message,omitempty"` // Optional. Pass True, if the game message should not be automatically edited to include the current scoreboard
	ChatId             int    `json:"chat_id,omitempty"`              // Optional. Required if inline_message_id is not specified. Unique identifier for the target chat
	MessageId          int    `json:"message_id,omitempty"`           // Optional. Required if inline_message_id is not specified. Identifier of the sent message
	InlineMessageId    string `json:"inline_message_id,omitempty"`    // Optional. Required if chat_id and message_id are not specified. Identifier of the inline message
}

type SetMyCommandsParams

type SetMyCommandsParams struct {
	Commands     []*BotCommand `json:"commands"`                // A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.
	Scope        interface{}   `json:"scope,omitempty"`         // Optional. A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
	LanguageCode string        `json:"language_code,omitempty"` // Optional. A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands
}

type SetPassportDataErrorsParams

type SetPassportDataErrorsParams struct {
	UserId int           `json:"user_id"` // User identifier
	Errors []interface{} `json:"errors"`  // A JSON-serialized array describing the errors
}

type SetStickerPositionInSetParams

type SetStickerPositionInSetParams struct {
	Sticker  string `json:"sticker"`  // File identifier of the sticker
	Position int    `json:"position"` // New sticker position in the set, zero-based
}

type SetStickerSetThumbParams

type SetStickerSetThumbParams struct {
	Name   string      `json:"name"`            // Sticker set name
	UserId int         `json:"user_id"`         // User identifier of the sticker set owner
	Thumb  interface{} `json:"thumb,omitempty"` // Optional. A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/animated_stickers#technical-requirements for animated sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files ». Animated sticker set thumbnail can't be uploaded via HTTP URL.
}

type SetWebhookParams

type SetWebhookParams struct {
	Url                string      `json:"url"`                            // HTTPS url to send updates to. Use an empty string to remove webhook integration
	Certificate        interface{} `json:"certificate,omitempty"`          // Optional. Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details.
	IpAddress          string      `json:"ip_address,omitempty"`           // Optional. The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS
	MaxConnections     int         `json:"max_connections,omitempty"`      // Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.
	AllowedUpdates     []string    `json:"allowed_updates,omitempty"`      // Optional. A JSON-serialized list of the update types you want your bot to receive. For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member (default). If not specified, the previous setting will be used.Please note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted updates may be received for a short period of time.
	DropPendingUpdates bool        `json:"drop_pending_updates,omitempty"` // Optional. Pass True to drop all pending updates
}

type ShippingAddress

type ShippingAddress struct {
	CountryCode string `json:"country_code"` // ISO 3166-1 alpha-2 country code
	State       string `json:"state"`        // State, if applicable
	City        string `json:"city"`         // City
	StreetLine1 string `json:"street_line1"` // First line for the address
	StreetLine2 string `json:"street_line2"` // Second line for the address
	PostCode    string `json:"post_code"`    // Address post code
}

type ShippingOption

type ShippingOption struct {
	Id     string          `json:"id"`     // Shipping option identifier
	Title  string          `json:"title"`  // Option title
	Prices []*LabeledPrice `json:"prices"` // List of price portions
}

type ShippingQuery

type ShippingQuery struct {
	Id              string           `json:"id"`               // Unique query identifier
	From            *User            `json:"from"`             // User who sent the query
	InvoicePayload  string           `json:"invoice_payload"`  // Bot specified invoice payload
	ShippingAddress *ShippingAddress `json:"shipping_address"` // User specified shipping address
}

type Sticker

type Sticker struct {
	FileId       string        `json:"file_id"`                 // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string        `json:"file_unique_id"`          // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	Width        int           `json:"width"`                   // Sticker width
	Height       int           `json:"height"`                  // Sticker height
	IsAnimated   bool          `json:"is_animated"`             // True, if the sticker is animated
	Thumb        *PhotoSize    `json:"thumb,omitempty"`         // Optional. Sticker thumbnail in the .WEBP or .JPG format
	Emoji        string        `json:"emoji,omitempty"`         // Optional. Emoji associated with the sticker
	SetName      string        `json:"set_name,omitempty"`      // Optional. Name of the sticker set to which the sticker belongs
	MaskPosition *MaskPosition `json:"mask_position,omitempty"` // Optional. For mask stickers, the position where the mask should be placed
	FileSize     int           `json:"file_size,omitempty"`     // Optional. File size
}

type StickerSet

type StickerSet struct {
	Name          string     `json:"name"`            // Sticker set name
	Title         string     `json:"title"`           // Sticker set title
	IsAnimated    bool       `json:"is_animated"`     // True, if the sticker set contains animated stickers
	ContainsMasks bool       `json:"contains_masks"`  // True, if the sticker set contains masks
	Stickers      []*Sticker `json:"stickers"`        // List of all set stickers
	Thumb         *PhotoSize `json:"thumb,omitempty"` // Optional. Sticker set thumbnail in the .WEBP or .TGS format
}

type StopMessageLiveLocationParams

type StopMessageLiveLocationParams struct {
	ChatId          interface{}           `json:"chat_id,omitempty"`           // Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId       int                   `json:"message_id,omitempty"`        // Optional. Required if inline_message_id is not specified. Identifier of the message with live location to stop
	InlineMessageId string                `json:"inline_message_id,omitempty"` // Optional. Required if chat_id and message_id are not specified. Identifier of the inline message
	ReplyMarkup     *InlineKeyboardMarkup `json:"reply_markup,omitempty"`      // Optional. A JSON-serialized object for a new inline keyboard.
}

type StopPollParams

type StopPollParams struct {
	ChatId      interface{}           `json:"chat_id"`                // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId   int                   `json:"message_id"`             // Identifier of the original message with the poll
	ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` // Optional. A JSON-serialized object for a new message inline keyboard.
}

type SuccessfulPayment

type SuccessfulPayment struct {
	Currency                string     `json:"currency"`                     // Three-letter ISO 4217 currency code
	TotalAmount             int        `json:"total_amount"`                 // Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
	InvoicePayload          string     `json:"invoice_payload"`              // Bot specified invoice payload
	ShippingOptionId        string     `json:"shipping_option_id,omitempty"` // Optional. Identifier of the shipping option chosen by the user
	OrderInfo               *OrderInfo `json:"order_info,omitempty"`         // Optional. Order info provided by the user
	TelegramPaymentChargeId string     `json:"telegram_payment_charge_id"`   // Telegram payment identifier
	ProviderPaymentChargeId string     `json:"provider_payment_charge_id"`   // Provider payment identifier
}

type UnbanChatMemberParams

type UnbanChatMemberParams struct {
	ChatId       interface{} `json:"chat_id"`                  // Unique identifier for the target group or username of the target supergroup or channel (in the format @username)
	UserId       int         `json:"user_id"`                  // Unique identifier of the target user
	OnlyIfBanned bool        `json:"only_if_banned,omitempty"` // Optional. Do nothing if the user is not banned
}

type UnpinAllChatMessagesParams

type UnpinAllChatMessagesParams struct {
	ChatId interface{} `json:"chat_id"` // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
}

type UnpinChatMessageParams

type UnpinChatMessageParams struct {
	ChatId    interface{} `json:"chat_id"`              // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
	MessageId int         `json:"message_id,omitempty"` // Optional. Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned.
}

type Update

type Update struct {
	UpdateId           int                 `json:"update_id"`                      // The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.
	Message            *Message            `json:"message,omitempty"`              // Optional. New incoming message of any kind — text, photo, sticker, etc.
	EditedMessage      *Message            `json:"edited_message,omitempty"`       // Optional. New version of a message that is known to the bot and was edited
	ChannelPost        *Message            `json:"channel_post,omitempty"`         // Optional. New incoming channel post of any kind — text, photo, sticker, etc.
	EditedChannelPost  *Message            `json:"edited_channel_post,omitempty"`  // Optional. New version of a channel post that is known to the bot and was edited
	InlineQuery        *InlineQuery        `json:"inline_query,omitempty"`         // Optional. New incoming inline query
	ChosenInlineResult *ChosenInlineResult `json:"chosen_inline_result,omitempty"` // Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.
	CallbackQuery      *CallbackQuery      `json:"callback_query,omitempty"`       // Optional. New incoming callback query
	ShippingQuery      *ShippingQuery      `json:"shipping_query,omitempty"`       // Optional. New incoming shipping query. Only for invoices with flexible price
	PreCheckoutQuery   *PreCheckoutQuery   `json:"pre_checkout_query,omitempty"`   // Optional. New incoming pre-checkout query. Contains full information about checkout
	Poll               *Poll               `json:"poll,omitempty"`                 // Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot
	PollAnswer         *PollAnswer         `json:"poll_answer,omitempty"`          // Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.
	MyChatMember       *ChatMemberUpdated  `json:"my_chat_member,omitempty"`       // Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.
	ChatMember         *ChatMemberUpdated  `json:"chat_member,omitempty"`          // Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify "chat_member" in the list of allowed_updates to receive these updates.
}

type UploadStickerFileParams

type UploadStickerFileParams struct {
	UserId     int         `json:"user_id"`     // User identifier of sticker file owner
	PngSticker interface{} `json:"png_sticker"` // PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. More info on Sending Files »
}

type User

type User struct {
	Id                      int    `json:"id"`                                    // Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
	IsBot                   bool   `json:"is_bot"`                                // True, if this user is a bot
	FirstName               string `json:"first_name"`                            // User's or bot's first name
	LastName                string `json:"last_name,omitempty"`                   // Optional. User's or bot's last name
	Username                string `json:"username,omitempty"`                    // Optional. User's or bot's username
	LanguageCode            string `json:"language_code,omitempty"`               // Optional. IETF language tag of the user's language
	CanJoinGroups           bool   `json:"can_join_groups,omitempty"`             // Optional. True, if the bot can be invited to groups. Returned only in getMe.
	CanReadAllGroupMessages bool   `json:"can_read_all_group_messages,omitempty"` // Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
	SupportsInlineQueries   bool   `json:"supports_inline_queries,omitempty"`     // Optional. True, if the bot supports inline queries. Returned only in getMe.
}

type UserProfilePhotos

type UserProfilePhotos struct {
	TotalCount int            `json:"total_count"` // Total number of profile pictures the target user has
	Photos     [][]*PhotoSize `json:"photos"`      // Requested profile pictures (in up to 4 sizes each)
}

type Venue

type Venue struct {
	Location        *Location `json:"location"`                    // Venue location. Can't be a live location
	Title           string    `json:"title"`                       // Name of the venue
	Address         string    `json:"address"`                     // Address of the venue
	FoursquareId    string    `json:"foursquare_id,omitempty"`     // Optional. Foursquare identifier of the venue
	FoursquareType  string    `json:"foursquare_type,omitempty"`   // Optional. Foursquare type of the venue. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
	GooglePlaceId   string    `json:"google_place_id,omitempty"`   // Optional. Google Places identifier of the venue
	GooglePlaceType string    `json:"google_place_type,omitempty"` // Optional. Google Places type of the venue. (See supported types.)
}

type Video

type Video struct {
	FileId       string     `json:"file_id"`             // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string     `json:"file_unique_id"`      // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	Width        int        `json:"width"`               // Video width as defined by sender
	Height       int        `json:"height"`              // Video height as defined by sender
	Duration     int        `json:"duration"`            // Duration of the video in seconds as defined by sender
	Thumb        *PhotoSize `json:"thumb,omitempty"`     // Optional. Video thumbnail
	FileName     string     `json:"file_name,omitempty"` // Optional. Original filename as defined by sender
	MimeType     string     `json:"mime_type,omitempty"` // Optional. Mime type of a file as defined by sender
	FileSize     int        `json:"file_size,omitempty"` // Optional. File size
}

type VideoNote

type VideoNote struct {
	FileId       string     `json:"file_id"`             // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string     `json:"file_unique_id"`      // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	Length       int        `json:"length"`              // Video width and height (diameter of the video message) as defined by sender
	Duration     int        `json:"duration"`            // Duration of the video in seconds as defined by sender
	Thumb        *PhotoSize `json:"thumb,omitempty"`     // Optional. Video thumbnail
	FileSize     int        `json:"file_size,omitempty"` // Optional. File size
}

type Voice

type Voice struct {
	FileId       string `json:"file_id"`             // Identifier for this file, which can be used to download or reuse the file
	FileUniqueId string `json:"file_unique_id"`      // Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
	Duration     int    `json:"duration"`            // Duration of the audio in seconds as defined by sender
	MimeType     string `json:"mime_type,omitempty"` // Optional. MIME type of the file as defined by sender
	FileSize     int    `json:"file_size,omitempty"` // Optional. File size
}

type VoiceChatEnded

type VoiceChatEnded struct {
	Duration int `json:"duration"` // Voice chat duration; in seconds
}

type VoiceChatParticipantsInvited

type VoiceChatParticipantsInvited struct {
	Users []*User `json:"users,omitempty"` // Optional. New members that were invited to the voice chat
}

type VoiceChatScheduled

type VoiceChatScheduled struct {
	StartDate int `json:"start_date"` // Point in time (Unix timestamp) when the voice chat is supposed to be started by a chat administrator
}

type VoiceChatStarted

type VoiceChatStarted struct {
}

type WebhookInfo

type WebhookInfo struct {
	Url                  string   `json:"url"`                          // Webhook URL, may be empty if webhook is not set up
	HasCustomCertificate bool     `json:"has_custom_certificate"`       // True, if a custom certificate was provided for webhook certificate checks
	PendingUpdateCount   int      `json:"pending_update_count"`         // Number of updates awaiting delivery
	IpAddress            string   `json:"ip_address,omitempty"`         // Optional. Currently used webhook IP address
	LastErrorDate        int      `json:"last_error_date,omitempty"`    // Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook
	LastErrorMessage     string   `json:"last_error_message,omitempty"` // Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
	MaxConnections       int      `json:"max_connections,omitempty"`    // Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
	AllowedUpdates       []string `json:"allowed_updates,omitempty"`    // Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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