types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeChatMemberOwner = iota
	TypeChatMemberAdministrator
	TypeChatMemberMember
	TypeChatMemberRestricted
	TypeChatMemberLeft
	TypeChatMemberBanned
)

CHAT_MEMBER

View Source
const (
	TypeArrayOfBotCommand = iota
	TypeArrayOfChatMember
	TypeArrayOfGameHighScore
	TypeArrayOfMessage
	TypeArrayOfUpdate
	TypeBoolean
	TypeChat
	TypeChatAdministratorRights
	TypeChatInviteLink
	TypeChatMember
	TypeFile
	TypeInteger
	TypeMenuButton
	TypeMessage
	TypeMessageId
	TypePoll
	TypeSentWebAppMessage
	TypeStickerSet
	TypeString
	TypeUser
	TypeUserProfilePhotos
	TypeWebhookInfo
)

RETURN_TYPES

Variables

This section is empty.

Functions

This section is empty.

Types

type Animation

type Animation struct {
	Duration     int        `json:"duration"`
	FileId       string     `json:"file_id"`
	FileName     string     `json:"file_name,omitempty"`
	FileSize     int        `json:"file_size,omitempty"`
	FileUniqueId string     `json:"file_unique_id"`
	Height       int        `json:"height"`
	MimeType     string     `json:"mime_type,omitempty"`
	Thumb        *PhotoSize `json:"thumb,omitempty"`
	Width        int64      `json:"width"`
}

type Audio

type Audio struct {
	Duration     int        `json:"duration"`
	FileId       string     `json:"file_id"`
	FileName     string     `json:"file_name,omitempty"`
	FileSize     int        `json:"file_size,omitempty"`
	FileUniqueId string     `json:"file_unique_id"`
	MimeType     string     `json:"mime_type,omitempty"`
	Performer    string     `json:"performer,omitempty"`
	Thumb        *PhotoSize `json:"thumb,omitempty"`
	Title        string     `json:"title,omitempty"`
}

type BotCommand

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

type BotCommandScope

type BotCommandScope interface{}

type BotCommandScopeAllChatAdministrators

type BotCommandScopeAllChatAdministrators struct {
	Type string `json:"type"`
}

type BotCommandScopeAllGroupChats

type BotCommandScopeAllGroupChats struct {
	Type string `json:"type"`
}

type BotCommandScopeAllPrivateChats

type BotCommandScopeAllPrivateChats struct {
	Type string `json:"type"`
}

type BotCommandScopeChat

type BotCommandScopeChat struct {
	ChatId int64  `json:"chat_id"`
	Type   string `json:"type"`
}

type BotCommandScopeChatAdministrators

type BotCommandScopeChatAdministrators struct {
	ChatId int64  `json:"chat_id"`
	Type   string `json:"type"`
}

type BotCommandScopeChatMember

type BotCommandScopeChatMember struct {
	ChatId int64  `json:"chat_id"`
	Type   string `json:"type"`
	UserId int64  `json:"user_id"`
}

type BotCommandScopeDefault

type BotCommandScopeDefault struct {
	Type string `json:"type"`
}

type CallbackGame

type CallbackGame interface{}

type CallbackQuery

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

type Chat

type Chat struct {
	Bio                   string           `json:"bio,omitempty"`
	CanSetStickerSet      bool             `json:"can_set_sticker_set,omitempty"`
	Description           string           `json:"description,omitempty"`
	FirstName             string           `json:"first_name,omitempty"`
	HasPrivateForwards    bool             `json:"has_private_forwards,omitempty"`
	HasProtectedContent   bool             `json:"has_protected_content,omitempty"`
	Id                    int64            `json:"id"`
	InviteLink            string           `json:"invite_link,omitempty"`
	LastName              string           `json:"last_name,omitempty"`
	LinkedChatId          int64            `json:"linked_chat_id,omitempty"`
	Location              *ChatLocation    `json:"location,omitempty"`
	MessageAutoDeleteTime int              `json:"message_auto_delete_time,omitempty"`
	Permissions           *ChatPermissions `json:"permissions,omitempty"`
	Photo                 *ChatPhoto       `json:"photo,omitempty"`
	PinnedMessage         *Message         `json:"pinned_message,omitempty"`
	SlowModeDelay         int              `json:"slow_mode_delay,omitempty"`
	StickerSetName        string           `json:"sticker_set_name,omitempty"`
	Title                 string           `json:"title,omitempty"`
	Type                  string           `json:"type"`
	Username              string           `json:"username,omitempty"`
}

type ChatAdministratorRights

type ChatAdministratorRights struct {
	CanChangeInfo       bool `json:"can_change_info"`
	CanDeleteMessages   bool `json:"can_delete_messages"`
	CanEditMessages     bool `json:"can_edit_messages,omitempty"`
	CanInviteUsers      bool `json:"can_invite_users"`
	CanManageChat       bool `json:"can_manage_chat"`
	CanManageVideoChats bool `json:"can_manage_video_chats"`
	CanPinMessages      bool `json:"can_pin_messages,omitempty"`
	CanPostMessages     bool `json:"can_post_messages,omitempty"`
	CanPromoteMembers   bool `json:"can_promote_members"`
	CanRestrictMembers  bool `json:"can_restrict_members"`
	IsAnonymous         bool `json:"is_anonymous"`
}
type ChatInviteLink struct {
	CreatesJoinRequest      bool   `json:"creates_join_request"`
	Creator                 User   `json:"creator"`
	ExpireDate              int64  `json:"expire_date,omitempty"`
	InviteLink              string `json:"invite_link"`
	IsPrimary               bool   `json:"is_primary"`
	IsRevoked               bool   `json:"is_revoked"`
	MemberLimit             int    `json:"member_limit,omitempty"`
	Name                    string `json:"name,omitempty"`
	PendingJoinRequestCount int    `json:"pending_join_request_count,omitempty"`
}

type ChatJoinRequest

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

type ChatLocation

type ChatLocation struct {
	Address  string   `json:"address"`
	Location Location `json:"location"`
}

type ChatMember

type ChatMember struct {
	CanAddWebPagePreviews bool   `json:"can_add_web_page_previews"`
	CanBeEdited           bool   `json:"can_be_edited"`
	CanChangeInfo         bool   `json:"can_change_info"`
	CanDeleteMessages     bool   `json:"can_delete_messages"`
	CanEditMessages       bool   `json:"can_edit_messages"`
	CanInviteUsers        bool   `json:"can_invite_users"`
	CanManageChat         bool   `json:"can_manage_chat"`
	CanManageVideoChats   bool   `json:"can_manage_video_chats"`
	CanPinMessages        bool   `json:"can_pin_messages"`
	CanPostMessages       bool   `json:"can_post_messages"`
	CanPromoteMembers     bool   `json:"can_promote_members"`
	CanRestrictMembers    bool   `json:"can_restrict_members"`
	CanSendMediaMessages  bool   `json:"can_send_media_messages"`
	CanSendMessages       bool   `json:"can_send_messages"`
	CanSendOtherMessages  bool   `json:"can_send_other_messages"`
	CanSendPolls          bool   `json:"can_send_polls"`
	CustomTitle           string `json:"custom_title"`
	IsAnonymous           bool   `json:"is_anonymous"`
	IsMember              bool   `json:"is_member"`
	Status                string `json:"status"`
	UntilDate             int64  `json:"until_date"`
	User                  User   `json:"user"`
}

func (ChatMember) Kind

func (x ChatMember) Kind() int

type ChatMemberUpdated

type ChatMemberUpdated struct {
	Chat          Chat            `json:"chat"`
	Date          int64           `json:"date"`
	From          User            `json:"from"`
	InviteLink    *ChatInviteLink `json:"invite_link,omitempty"`
	NewChatMember ChatMember      `json:"new_chat_member"`
	OldChatMember ChatMember      `json:"old_chat_member"`
}

type ChatPermissions

type ChatPermissions struct {
	CanAddWebPagePreviews bool `json:"can_add_web_page_previews,omitempty"`
	CanChangeInfo         bool `json:"can_change_info,omitempty"`
	CanInviteUsers        bool `json:"can_invite_users,omitempty"`
	CanPinMessages        bool `json:"can_pin_messages,omitempty"`
	CanSendMediaMessages  bool `json:"can_send_media_messages,omitempty"`
	CanSendMessages       bool `json:"can_send_messages,omitempty"`
	CanSendOtherMessages  bool `json:"can_send_other_messages,omitempty"`
	CanSendPolls          bool `json:"can_send_polls,omitempty"`
}

type ChatPhoto

type ChatPhoto struct {
	BigFileId         string `json:"big_file_id"`
	BigFileUniqueId   string `json:"big_file_unique_id"`
	SmallFileId       string `json:"small_file_id"`
	SmallFileUniqueId string `json:"small_file_unique_id"`
}

type ChosenInlineResult

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

type Contact

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

type Dice

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

type Document

type Document struct {
	FileId       string     `json:"file_id"`
	FileName     string     `json:"file_name,omitempty"`
	FileSize     int        `json:"file_size,omitempty"`
	FileUniqueId string     `json:"file_unique_id"`
	MimeType     string     `json:"mime_type,omitempty"`
	Thumb        *PhotoSize `json:"thumb,omitempty"`
}

type EncryptedCredentials

type EncryptedCredentials struct {
	Data   string `json:"data"`
	Hash   string `json:"hash"`
	Secret string `json:"secret"`
}

type EncryptedPassportElement

type EncryptedPassportElement struct {
	Data        string         `json:"data,omitempty"`
	Email       string         `json:"email,omitempty"`
	Files       []PassportFile `json:"files,omitempty"`
	FrontSide   *PassportFile  `json:"front_side,omitempty"`
	Hash        string         `json:"hash"`
	PhoneNumber string         `json:"phone_number,omitempty"`
	ReverseSide *PassportFile  `json:"reverse_side,omitempty"`
	Selfie      *PassportFile  `json:"selfie,omitempty"`
	Translation []PassportFile `json:"translation,omitempty"`
	Type        string         `json:"type"`
}

type File

type File struct {
	FileId       string `json:"file_id"`
	FilePath     string `json:"file_path,omitempty"`
	FileSize     int    `json:"file_size,omitempty"`
	FileUniqueId string `json:"file_unique_id"`
}

type ForceReply

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

type Game

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

type GameHighScore

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

type InlineKeyboardButton

type InlineKeyboardButton struct {
	CallbackData                 string        `json:"callback_data,omitempty"`
	CallbackGame                 *CallbackGame `json:"callback_game,omitempty"`
	LoginUrl                     *LoginUrl     `json:"login_url,omitempty"`
	Pay                          bool          `json:"pay,omitempty"`
	SwitchInlineQuery            string        `json:"switch_inline_query,omitempty"`
	SwitchInlineQueryCurrentChat string        `json:"switch_inline_query_current_chat,omitempty"`
	Text                         string        `json:"text"`
	Url                          string        `json:"url,omitempty"`
	WebApp                       *WebAppInfo   `json:"web_app,omitempty"`
}

type InlineKeyboardMarkup

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

type InlineQuery

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

type InlineQueryResult

type InlineQueryResult interface{}

type InlineQueryResultArticle

type InlineQueryResultArticle struct {
	Description         string                `json:"description,omitempty"`
	HideUrl             bool                  `json:"hide_url,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent InputMessageContent   `json:"input_message_content"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ThumbHeight         int                   `json:"thumb_height,omitempty"`
	ThumbUrl            string                `json:"thumb_url,omitempty"`
	ThumbWidth          int64                 `json:"thumb_width,omitempty"`
	Title               string                `json:"title"`
	Type                string                `json:"type"`
	Url                 string                `json:"url,omitempty"`
}

func (InlineQueryResultArticle) MarshalJSON

func (entity InlineQueryResultArticle) MarshalJSON() ([]byte, error)

type InlineQueryResultAudio

type InlineQueryResultAudio struct {
	AudioDuration       int                   `json:"audio_duration,omitempty"`
	AudioUrl            string                `json:"audio_url"`
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	Performer           string                `json:"performer,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	Title               string                `json:"title"`
	Type                string                `json:"type"`
}

func (InlineQueryResultAudio) MarshalJSON

func (entity InlineQueryResultAudio) MarshalJSON() ([]byte, error)

type InlineQueryResultCachedAudio

type InlineQueryResultCachedAudio struct {
	AudioFileId         string                `json:"audio_file_id"`
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	Type                string                `json:"type"`
}

func (InlineQueryResultCachedAudio) MarshalJSON

func (entity InlineQueryResultCachedAudio) MarshalJSON() ([]byte, error)

type InlineQueryResultCachedDocument

type InlineQueryResultCachedDocument struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Description         string                `json:"description,omitempty"`
	DocumentFileId      string                `json:"document_file_id"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	Title               string                `json:"title"`
	Type                string                `json:"type"`
}

func (InlineQueryResultCachedDocument) MarshalJSON

func (entity InlineQueryResultCachedDocument) MarshalJSON() ([]byte, error)

type InlineQueryResultCachedGif

type InlineQueryResultCachedGif struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	GifFileId           string                `json:"gif_file_id"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	Title               string                `json:"title,omitempty"`
	Type                string                `json:"type"`
}

func (InlineQueryResultCachedGif) MarshalJSON

func (entity InlineQueryResultCachedGif) MarshalJSON() ([]byte, error)

type InlineQueryResultCachedMpeg4Gif

type InlineQueryResultCachedMpeg4Gif struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	Mpeg4FileId         string                `json:"mpeg4_file_id"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	Title               string                `json:"title,omitempty"`
	Type                string                `json:"type"`
}

func (InlineQueryResultCachedMpeg4Gif) MarshalJSON

func (entity InlineQueryResultCachedMpeg4Gif) MarshalJSON() ([]byte, error)

type InlineQueryResultCachedPhoto

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

func (InlineQueryResultCachedPhoto) MarshalJSON

func (entity InlineQueryResultCachedPhoto) MarshalJSON() ([]byte, error)

type InlineQueryResultCachedSticker

type InlineQueryResultCachedSticker struct {
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	StickerFileId       string                `json:"sticker_file_id"`
	Type                string                `json:"type"`
}

func (InlineQueryResultCachedSticker) MarshalJSON

func (entity InlineQueryResultCachedSticker) MarshalJSON() ([]byte, error)

type InlineQueryResultCachedVideo

type InlineQueryResultCachedVideo struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Description         string                `json:"description,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	Title               string                `json:"title"`
	Type                string                `json:"type"`
	VideoFileId         string                `json:"video_file_id"`
}

func (InlineQueryResultCachedVideo) MarshalJSON

func (entity InlineQueryResultCachedVideo) MarshalJSON() ([]byte, error)

type InlineQueryResultCachedVoice

type InlineQueryResultCachedVoice struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	Title               string                `json:"title"`
	Type                string                `json:"type"`
	VoiceFileId         string                `json:"voice_file_id"`
}

func (InlineQueryResultCachedVoice) MarshalJSON

func (entity InlineQueryResultCachedVoice) MarshalJSON() ([]byte, error)

type InlineQueryResultContact

type InlineQueryResultContact struct {
	FirstName           string                `json:"first_name"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	LastName            string                `json:"last_name,omitempty"`
	PhoneNumber         string                `json:"phone_number"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ThumbHeight         int                   `json:"thumb_height,omitempty"`
	ThumbUrl            string                `json:"thumb_url,omitempty"`
	ThumbWidth          int64                 `json:"thumb_width,omitempty"`
	Type                string                `json:"type"`
	Vcard               string                `json:"vcard,omitempty"`
}

func (InlineQueryResultContact) MarshalJSON

func (entity InlineQueryResultContact) MarshalJSON() ([]byte, error)

type InlineQueryResultDocument

type InlineQueryResultDocument struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Description         string                `json:"description,omitempty"`
	DocumentUrl         string                `json:"document_url"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	MimeType            string                `json:"mime_type"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ThumbHeight         int                   `json:"thumb_height,omitempty"`
	ThumbUrl            string                `json:"thumb_url,omitempty"`
	ThumbWidth          int64                 `json:"thumb_width,omitempty"`
	Title               string                `json:"title"`
	Type                string                `json:"type"`
}

func (InlineQueryResultDocument) MarshalJSON

func (entity InlineQueryResultDocument) MarshalJSON() ([]byte, error)

type InlineQueryResultGame

type InlineQueryResultGame struct {
	GameShortName string                `json:"game_short_name"`
	Id            string                `json:"id"`
	ReplyMarkup   *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	Type          string                `json:"type"`
}

type InlineQueryResultGif

type InlineQueryResultGif struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	GifDuration         int                   `json:"gif_duration,omitempty"`
	GifHeight           int                   `json:"gif_height,omitempty"`
	GifUrl              string                `json:"gif_url"`
	GifWidth            int64                 `json:"gif_width,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ThumbMimeType       string                `json:"thumb_mime_type,omitempty"`
	ThumbUrl            string                `json:"thumb_url"`
	Title               string                `json:"title,omitempty"`
	Type                string                `json:"type"`
}

func (InlineQueryResultGif) MarshalJSON

func (entity InlineQueryResultGif) MarshalJSON() ([]byte, error)

type InlineQueryResultLocation

type InlineQueryResultLocation struct {
	Heading              int                   `json:"heading,omitempty"`
	HorizontalAccuracy   float64               `json:"horizontal_accuracy,omitempty"`
	Id                   string                `json:"id"`
	InputMessageContent  *InputMessageContent  `json:"input_message_content,omitempty"`
	Latitude             float64               `json:"latitude"`
	LivePeriod           int                   `json:"live_period,omitempty"`
	Longitude            float64               `json:"longitude"`
	ProximityAlertRadius int                   `json:"proximity_alert_radius,omitempty"`
	ReplyMarkup          *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ThumbHeight          int                   `json:"thumb_height,omitempty"`
	ThumbUrl             string                `json:"thumb_url,omitempty"`
	ThumbWidth           int64                 `json:"thumb_width,omitempty"`
	Title                string                `json:"title"`
	Type                 string                `json:"type"`
}

func (InlineQueryResultLocation) MarshalJSON

func (entity InlineQueryResultLocation) MarshalJSON() ([]byte, error)

type InlineQueryResultMpeg4Gif

type InlineQueryResultMpeg4Gif struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	Mpeg4Duration       int                   `json:"mpeg4_duration,omitempty"`
	Mpeg4Height         int                   `json:"mpeg4_height,omitempty"`
	Mpeg4Url            string                `json:"mpeg4_url"`
	Mpeg4Width          int64                 `json:"mpeg4_width,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ThumbMimeType       string                `json:"thumb_mime_type,omitempty"`
	ThumbUrl            string                `json:"thumb_url"`
	Title               string                `json:"title,omitempty"`
	Type                string                `json:"type"`
}

func (InlineQueryResultMpeg4Gif) MarshalJSON

func (entity InlineQueryResultMpeg4Gif) MarshalJSON() ([]byte, error)

type InlineQueryResultPhoto

type InlineQueryResultPhoto struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Description         string                `json:"description,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	PhotoHeight         int                   `json:"photo_height,omitempty"`
	PhotoUrl            string                `json:"photo_url"`
	PhotoWidth          int64                 `json:"photo_width,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ThumbUrl            string                `json:"thumb_url"`
	Title               string                `json:"title,omitempty"`
	Type                string                `json:"type"`
}

func (InlineQueryResultPhoto) MarshalJSON

func (entity InlineQueryResultPhoto) MarshalJSON() ([]byte, error)

type InlineQueryResultVenue

type InlineQueryResultVenue struct {
	Address             string                `json:"address"`
	FoursquareId        string                `json:"foursquare_id,omitempty"`
	FoursquareType      string                `json:"foursquare_type,omitempty"`
	GooglePlaceId       string                `json:"google_place_id,omitempty"`
	GooglePlaceType     string                `json:"google_place_type,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	Latitude            float64               `json:"latitude"`
	Longitude           float64               `json:"longitude"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ThumbHeight         int                   `json:"thumb_height,omitempty"`
	ThumbUrl            string                `json:"thumb_url,omitempty"`
	ThumbWidth          int64                 `json:"thumb_width,omitempty"`
	Title               string                `json:"title"`
	Type                string                `json:"type"`
}

func (InlineQueryResultVenue) MarshalJSON

func (entity InlineQueryResultVenue) MarshalJSON() ([]byte, error)

type InlineQueryResultVideo

type InlineQueryResultVideo struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Description         string                `json:"description,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	MimeType            string                `json:"mime_type"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ThumbUrl            string                `json:"thumb_url"`
	Title               string                `json:"title"`
	Type                string                `json:"type"`
	VideoDuration       int64                 `json:"video_duration,omitempty"`
	VideoHeight         int64                 `json:"video_height,omitempty"`
	VideoUrl            string                `json:"video_url"`
	VideoWidth          int64                 `json:"video_width,omitempty"`
}

func (InlineQueryResultVideo) MarshalJSON

func (entity InlineQueryResultVideo) MarshalJSON() ([]byte, error)

type InlineQueryResultVoice

type InlineQueryResultVoice struct {
	Caption             string                `json:"caption,omitempty"`
	CaptionEntities     []MessageEntity       `json:"caption_entities,omitempty"`
	Id                  string                `json:"id"`
	InputMessageContent *InputMessageContent  `json:"input_message_content,omitempty"`
	ParseMode           string                `json:"parse_mode,omitempty"`
	ReplyMarkup         *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	Title               string                `json:"title"`
	Type                string                `json:"type"`
	VoiceDuration       int                   `json:"voice_duration,omitempty"`
	VoiceUrl            string                `json:"voice_url"`
}

func (InlineQueryResultVoice) MarshalJSON

func (entity InlineQueryResultVoice) MarshalJSON() ([]byte, error)

type InputContactMessageContent

type InputContactMessageContent struct {
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name,omitempty"`
	PhoneNumber string `json:"phone_number"`
	Vcard       string `json:"vcard,omitempty"`
}

type InputFile

type InputFile struct {
	Name  string
	Bytes []byte
}

func (InputFile) Content

func (r InputFile) Content() []byte

func (InputFile) FileName

func (r InputFile) FileName() string

func (InputFile) IsURL

func (r InputFile) IsURL() bool

type InputInvoiceMessageContent

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

type InputLocationMessageContent

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

type InputMedia

type InputMedia interface {
	SetAttachment(string)
	SetAttachmentThumb(string)
}

type InputMediaAnimation

type InputMediaAnimation struct {
	Caption         string             `json:"caption,omitempty"`
	CaptionEntities []MessageEntity    `json:"caption_entities,omitempty"`
	Duration        int                `json:"duration,omitempty"`
	Height          int                `json:"height,omitempty"`
	Media           rawTypes.InputFile `json:"media,omitempty"`
	ParseMode       string             `json:"parse_mode,omitempty"`
	Thumb           rawTypes.InputFile `json:"thumb,omitempty"`
	Width           int64              `json:"width,omitempty"`
}

func (*InputMediaAnimation) Files

func (entity *InputMediaAnimation) Files() map[string]rawTypes.InputFile

func (InputMediaAnimation) MarshalJSON

func (entity InputMediaAnimation) MarshalJSON() ([]byte, error)

func (*InputMediaAnimation) SetAttachment

func (entity *InputMediaAnimation) SetAttachment(attach string)

func (*InputMediaAnimation) SetAttachmentThumb

func (entity *InputMediaAnimation) SetAttachmentThumb(attach string)

type InputMediaAudio

type InputMediaAudio struct {
	Caption         string             `json:"caption,omitempty"`
	CaptionEntities []MessageEntity    `json:"caption_entities,omitempty"`
	Duration        int                `json:"duration,omitempty"`
	Media           rawTypes.InputFile `json:"media,omitempty"`
	ParseMode       string             `json:"parse_mode,omitempty"`
	Performer       string             `json:"performer,omitempty"`
	Thumb           rawTypes.InputFile `json:"thumb,omitempty"`
	Title           string             `json:"title,omitempty"`
}

func (*InputMediaAudio) Files

func (entity *InputMediaAudio) Files() map[string]rawTypes.InputFile

func (InputMediaAudio) MarshalJSON

func (entity InputMediaAudio) MarshalJSON() ([]byte, error)

func (*InputMediaAudio) SetAttachment

func (entity *InputMediaAudio) SetAttachment(attach string)

func (*InputMediaAudio) SetAttachmentThumb

func (entity *InputMediaAudio) SetAttachmentThumb(attach string)

type InputMediaDocument

type InputMediaDocument struct {
	Caption                     string             `json:"caption,omitempty"`
	CaptionEntities             []MessageEntity    `json:"caption_entities,omitempty"`
	DisableContentTypeDetection bool               `json:"disable_content_type_detection,omitempty"`
	Media                       rawTypes.InputFile `json:"media,omitempty"`
	ParseMode                   string             `json:"parse_mode,omitempty"`
	Thumb                       rawTypes.InputFile `json:"thumb,omitempty"`
}

func (*InputMediaDocument) Files

func (entity *InputMediaDocument) Files() map[string]rawTypes.InputFile

func (InputMediaDocument) MarshalJSON

func (entity InputMediaDocument) MarshalJSON() ([]byte, error)

func (*InputMediaDocument) SetAttachment

func (entity *InputMediaDocument) SetAttachment(attach string)

func (*InputMediaDocument) SetAttachmentThumb

func (entity *InputMediaDocument) SetAttachmentThumb(attach string)

type InputMediaPhoto

type InputMediaPhoto struct {
	Caption         string             `json:"caption,omitempty"`
	CaptionEntities []MessageEntity    `json:"caption_entities,omitempty"`
	Media           rawTypes.InputFile `json:"media,omitempty"`
	ParseMode       string             `json:"parse_mode,omitempty"`
}

func (*InputMediaPhoto) Files

func (entity *InputMediaPhoto) Files() map[string]rawTypes.InputFile

func (InputMediaPhoto) MarshalJSON

func (entity InputMediaPhoto) MarshalJSON() ([]byte, error)

func (*InputMediaPhoto) SetAttachment

func (entity *InputMediaPhoto) SetAttachment(attach string)

func (*InputMediaPhoto) SetAttachmentThumb

func (entity *InputMediaPhoto) SetAttachmentThumb(_ string)

type InputMediaVideo

type InputMediaVideo struct {
	Caption           string             `json:"caption,omitempty"`
	CaptionEntities   []MessageEntity    `json:"caption_entities,omitempty"`
	Duration          int                `json:"duration,omitempty"`
	Height            int                `json:"height,omitempty"`
	Media             rawTypes.InputFile `json:"media,omitempty"`
	ParseMode         string             `json:"parse_mode,omitempty"`
	SupportsStreaming bool               `json:"supports_streaming,omitempty"`
	Thumb             rawTypes.InputFile `json:"thumb,omitempty"`
	Width             int64              `json:"width,omitempty"`
}

func (*InputMediaVideo) Files

func (entity *InputMediaVideo) Files() map[string]rawTypes.InputFile

func (InputMediaVideo) MarshalJSON

func (entity InputMediaVideo) MarshalJSON() ([]byte, error)

func (*InputMediaVideo) SetAttachment

func (entity *InputMediaVideo) SetAttachment(attach string)

func (*InputMediaVideo) SetAttachmentThumb

func (entity *InputMediaVideo) SetAttachmentThumb(attach string)

type InputMessageContent

type InputMessageContent interface{}

type InputTextMessageContent

type InputTextMessageContent struct {
	DisableWebPagePreview bool            `json:"disable_web_page_preview,omitempty"`
	Entities              []MessageEntity `json:"entities,omitempty"`
	MessageText           string          `json:"message_text"`
	ParseMode             string          `json:"parse_mode,omitempty"`
}

type InputURL

type InputURL string

func (InputURL) Content

func (r InputURL) Content() []byte

func (InputURL) FileName

func (r InputURL) FileName() string

func (InputURL) IsURL

func (r InputURL) IsURL() bool

type InputVenueMessageContent

type InputVenueMessageContent struct {
	Address         string  `json:"address"`
	FoursquareId    string  `json:"foursquare_id,omitempty"`
	FoursquareType  string  `json:"foursquare_type,omitempty"`
	GooglePlaceId   string  `json:"google_place_id,omitempty"`
	GooglePlaceType string  `json:"google_place_type,omitempty"`
	Latitude        float64 `json:"latitude"`
	Longitude       float64 `json:"longitude"`
	Title           string  `json:"title"`
}

type Invoice

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

type KeyboardButton

type KeyboardButton struct {
	RequestContact  bool                    `json:"request_contact,omitempty"`
	RequestLocation bool                    `json:"request_location,omitempty"`
	RequestPoll     *KeyboardButtonPollType `json:"request_poll,omitempty"`
	Text            string                  `json:"text"`
	WebApp          *WebAppInfo             `json:"web_app,omitempty"`
}

type KeyboardButtonPollType

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

type LabeledPrice

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

type Location

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

type LoginUrl

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

type MaskPosition

type MaskPosition struct {
	Point  string  `json:"point"`
	Scale  float64 `json:"scale"`
	XShift float64 `json:"x_shift"`
	YShift float64 `json:"y_shift"`
}
type MenuButton interface{}
type MenuButtonCommands struct {
	Type string `json:"type"`
}
type MenuButtonDefault struct {
	Type string `json:"type"`
}
type MenuButtonWebApp struct {
	Text   string     `json:"text"`
	Type   string     `json:"type"`
	WebApp WebAppInfo `json:"web_app"`
}

type Message

type Message struct {
	Animation                     *Animation                     `json:"animation,omitempty"`
	Audio                         *Audio                         `json:"audio,omitempty"`
	AuthorSignature               string                         `json:"author_signature,omitempty"`
	Caption                       string                         `json:"caption,omitempty"`
	CaptionEntities               []MessageEntity                `json:"caption_entities,omitempty"`
	ChannelChatCreated            bool                           `json:"channel_chat_created,omitempty"`
	Chat                          Chat                           `json:"chat"`
	ConnectedWebsite              string                         `json:"connected_website,omitempty"`
	Contact                       *Contact                       `json:"contact,omitempty"`
	Date                          int64                          `json:"date"`
	DeleteChatPhoto               bool                           `json:"delete_chat_photo,omitempty"`
	Dice                          *Dice                          `json:"dice,omitempty"`
	Document                      *Document                      `json:"document,omitempty"`
	EditDate                      int64                          `json:"edit_date,omitempty"`
	Entities                      []MessageEntity                `json:"entities,omitempty"`
	ForwardDate                   int64                          `json:"forward_date,omitempty"`
	ForwardFrom                   *User                          `json:"forward_from,omitempty"`
	ForwardFromChat               *Chat                          `json:"forward_from_chat,omitempty"`
	ForwardFromMessageId          int64                          `json:"forward_from_message_id,omitempty"`
	ForwardSenderName             string                         `json:"forward_sender_name,omitempty"`
	ForwardSignature              string                         `json:"forward_signature,omitempty"`
	From                          *User                          `json:"from,omitempty"`
	Game                          *Game                          `json:"game,omitempty"`
	GroupChatCreated              bool                           `json:"group_chat_created,omitempty"`
	HasProtectedContent           bool                           `json:"has_protected_content,omitempty"`
	Invoice                       *Invoice                       `json:"invoice,omitempty"`
	IsAutomaticForward            bool                           `json:"is_automatic_forward,omitempty"`
	LeftChatMember                *User                          `json:"left_chat_member,omitempty"`
	Location                      *Location                      `json:"location,omitempty"`
	MediaGroupId                  string                         `json:"media_group_id,omitempty"`
	MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed,omitempty"`
	MessageId                     int64                          `json:"message_id"`
	MigrateFromChatId             int64                          `json:"migrate_from_chat_id,omitempty"`
	MigrateToChatId               int64                          `json:"migrate_to_chat_id,omitempty"`
	NewChatMembers                []User                         `json:"new_chat_members,omitempty"`
	NewChatPhoto                  []PhotoSize                    `json:"new_chat_photo,omitempty"`
	NewChatTitle                  string                         `json:"new_chat_title,omitempty"`
	PassportData                  *PassportData                  `json:"passport_data,omitempty"`
	Photo                         []PhotoSize                    `json:"photo,omitempty"`
	PinnedMessage                 *Message                       `json:"pinned_message,omitempty"`
	Poll                          *Poll                          `json:"poll,omitempty"`
	ProximityAlertTriggered       *ProximityAlertTriggered       `json:"proximity_alert_triggered,omitempty"`
	ReplyMarkup                   *InlineKeyboardMarkup          `json:"reply_markup,omitempty"`
	ReplyToMessage                *Message                       `json:"reply_to_message,omitempty"`
	SenderChat                    *Chat                          `json:"sender_chat,omitempty"`
	Sticker                       *Sticker                       `json:"sticker,omitempty"`
	SuccessfulPayment             *SuccessfulPayment             `json:"successful_payment,omitempty"`
	SupergroupChatCreated         bool                           `json:"supergroup_chat_created,omitempty"`
	Text                          string                         `json:"text,omitempty"`
	Venue                         *Venue                         `json:"venue,omitempty"`
	ViaBot                        *User                          `json:"via_bot,omitempty"`
	Video                         *Video                         `json:"video,omitempty"`
	VideoChatEnded                *VideoChatEnded                `json:"video_chat_ended,omitempty"`
	VideoChatParticipantsInvited  *VideoChatParticipantsInvited  `json:"video_chat_participants_invited,omitempty"`
	VideoChatScheduled            *VideoChatScheduled            `json:"video_chat_scheduled,omitempty"`
	VideoChatStarted              *VideoChatStarted              `json:"video_chat_started,omitempty"`
	VideoNote                     *VideoNote                     `json:"video_note,omitempty"`
	Voice                         *Voice                         `json:"voice,omitempty"`
	WebAppData                    *WebAppData                    `json:"web_app_data,omitempty"`
}

type MessageAutoDeleteTimerChanged

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

type MessageEntity

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

type MessageId

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

type OrderInfo

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

type PassportData

type PassportData struct {
	Credentials EncryptedCredentials       `json:"credentials"`
	Data        []EncryptedPassportElement `json:"data"`
}

type PassportElementError

type PassportElementError interface{}

type PassportElementErrorDataField

type PassportElementErrorDataField struct {
	DataHash  string `json:"data_hash"`
	FieldName string `json:"field_name"`
	Message   string `json:"message"`
	Source    string `json:"source"`
	Type      string `json:"type"`
}

type PassportElementErrorFile

type PassportElementErrorFile struct {
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
	Source   string `json:"source"`
	Type     string `json:"type"`
}

type PassportElementErrorFiles

type PassportElementErrorFiles struct {
	FileHashes []string `json:"file_hashes"`
	Message    string   `json:"message"`
	Source     string   `json:"source"`
	Type       string   `json:"type"`
}

type PassportElementErrorFrontSide

type PassportElementErrorFrontSide struct {
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
	Source   string `json:"source"`
	Type     string `json:"type"`
}

type PassportElementErrorReverseSide

type PassportElementErrorReverseSide struct {
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
	Source   string `json:"source"`
	Type     string `json:"type"`
}

type PassportElementErrorSelfie

type PassportElementErrorSelfie struct {
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
	Source   string `json:"source"`
	Type     string `json:"type"`
}

type PassportElementErrorTranslationFile

type PassportElementErrorTranslationFile struct {
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
	Source   string `json:"source"`
	Type     string `json:"type"`
}

type PassportElementErrorTranslationFiles

type PassportElementErrorTranslationFiles struct {
	FileHashes []string `json:"file_hashes"`
	Message    string   `json:"message"`
	Source     string   `json:"source"`
	Type       string   `json:"type"`
}

type PassportElementErrorUnspecified

type PassportElementErrorUnspecified struct {
	ElementHash string `json:"element_hash"`
	Message     string `json:"message"`
	Source      string `json:"source"`
	Type        string `json:"type"`
}

type PassportFile

type PassportFile struct {
	FileDate     int64  `json:"file_date"`
	FileId       string `json:"file_id"`
	FileSize     int    `json:"file_size"`
	FileUniqueId string `json:"file_unique_id"`
}

type PhotoSize

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

type Poll

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

type PollAnswer

type PollAnswer struct {
	OptionIds []int64 `json:"option_ids"`
	PollId    string  `json:"poll_id"`
	User      User    `json:"user"`
}

type PollOption

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

type PreCheckoutQuery

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

type ProximityAlertTriggered

type ProximityAlertTriggered struct {
	Distance int  `json:"distance"`
	Traveler User `json:"traveler"`
	Watcher  User `json:"watcher"`
}

type ReplyKeyboardMarkup

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

type ReplyKeyboardRemove

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

type ResponseParameters

type ResponseParameters struct {
	MigrateToChatId int64 `json:"migrate_to_chat_id,omitempty"`
	RetryAfter      int   `json:"retry_after,omitempty"`
}

type SentWebAppMessage

type SentWebAppMessage struct {
	InlineMessageId string `json:"inline_message_id,omitempty"`
}

type ShippingAddress

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

type ShippingOption

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

type ShippingQuery

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

type Sticker

type Sticker struct {
	Emoji        string        `json:"emoji,omitempty"`
	FileId       string        `json:"file_id"`
	FileSize     int           `json:"file_size,omitempty"`
	FileUniqueId string        `json:"file_unique_id"`
	Height       int           `json:"height"`
	IsAnimated   bool          `json:"is_animated"`
	IsVideo      bool          `json:"is_video"`
	MaskPosition *MaskPosition `json:"mask_position,omitempty"`
	SetName      string        `json:"set_name,omitempty"`
	Thumb        *PhotoSize    `json:"thumb,omitempty"`
	Width        int64         `json:"width"`
}

type StickerSet

type StickerSet struct {
	ContainsMasks bool       `json:"contains_masks"`
	IsAnimated    bool       `json:"is_animated"`
	IsVideo       bool       `json:"is_video"`
	Name          string     `json:"name"`
	Stickers      []Sticker  `json:"stickers"`
	Thumb         *PhotoSize `json:"thumb,omitempty"`
	Title         string     `json:"title"`
}

type SuccessfulPayment

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

type Update

type Update struct {
	CallbackQuery      *CallbackQuery      `json:"callback_query,omitempty"`
	ChannelPost        *Message            `json:"channel_post,omitempty"`
	ChatJoinRequest    *ChatJoinRequest    `json:"chat_join_request,omitempty"`
	ChatMember         *ChatMemberUpdated  `json:"chat_member,omitempty"`
	ChosenInlineResult *ChosenInlineResult `json:"chosen_inline_result,omitempty"`
	EditedChannelPost  *Message            `json:"edited_channel_post,omitempty"`
	EditedMessage      *Message            `json:"edited_message,omitempty"`
	InlineQuery        *InlineQuery        `json:"inline_query,omitempty"`
	Message            *Message            `json:"message,omitempty"`
	MyChatMember       *ChatMemberUpdated  `json:"my_chat_member,omitempty"`
	Poll               *Poll               `json:"poll,omitempty"`
	PollAnswer         *PollAnswer         `json:"poll_answer,omitempty"`
	PreCheckoutQuery   *PreCheckoutQuery   `json:"pre_checkout_query,omitempty"`
	ShippingQuery      *ShippingQuery      `json:"shipping_query,omitempty"`
	UpdateId           int64               `json:"update_id"`
}

type User

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

type UserProfilePhotos

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

type Venue

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

type Video

type Video struct {
	Duration     int        `json:"duration"`
	FileId       string     `json:"file_id"`
	FileName     string     `json:"file_name,omitempty"`
	FileSize     int        `json:"file_size,omitempty"`
	FileUniqueId string     `json:"file_unique_id"`
	Height       int        `json:"height"`
	MimeType     string     `json:"mime_type,omitempty"`
	Thumb        *PhotoSize `json:"thumb,omitempty"`
	Width        int64      `json:"width"`
}

type VideoChatEnded

type VideoChatEnded struct {
	Duration int `json:"duration"`
}

type VideoChatParticipantsInvited

type VideoChatParticipantsInvited struct {
	Users []User `json:"users"`
}

type VideoChatScheduled

type VideoChatScheduled struct {
	StartDate int64 `json:"start_date"`
}

type VideoChatStarted

type VideoChatStarted interface{}

type VideoNote

type VideoNote struct {
	Duration     int        `json:"duration"`
	FileId       string     `json:"file_id"`
	FileSize     int        `json:"file_size,omitempty"`
	FileUniqueId string     `json:"file_unique_id"`
	Length       int        `json:"length"`
	Thumb        *PhotoSize `json:"thumb,omitempty"`
}

type Voice

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

type WebAppData

type WebAppData struct {
	ButtonText string `json:"button_text"`
	Data       string `json:"data"`
}

type WebAppInfo

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

type WebhookInfo

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

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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