Documentation
¶
Index ¶
- Constants
- type AddStickerToSetLinkBody
- type AllowedUpdate
- type Animation
- type AnswerInlineQueryBody
- type AnswerShippingQueryBody
- type Audio
- type CallbackGame
- type CallbackQuery
- type Chat
- type ChatMember
- type ChatPhoto
- type ChosenInlineResult
- type Contact
- type CreateNewStickerSetLinkBody
- type Document
- type EditMessageCaptionBody
- type EditMessageReplyMarkupBody
- type EditMessageTextBody
- type Error
- type File
- type ForceReply
- type Game
- type GameHighScore
- type InlineKeyboardButton
- type InlineKeyboardMarkup
- type InlineQuery
- type InlineQueryResultArticle
- type InlineQueryResultAudio
- type InlineQueryResultCachedAudio
- type InlineQueryResultCachedDocument
- type InlineQueryResultCachedGif
- type InlineQueryResultCachedMpeg4Gif
- type InlineQueryResultCachedPhoto
- type InlineQueryResultCachedSticker
- type InlineQueryResultCachedVideo
- type InlineQueryResultCachedVoice
- type InlineQueryResultContact
- type InlineQueryResultDocument
- type InlineQueryResultGame
- type InlineQueryResultGif
- type InlineQueryResultLocation
- type InlineQueryResultMpeg4Gif
- type InlineQueryResultPhoto
- type InlineQueryResultVenue
- type InlineQueryResultVideo
- type InlineQueryResultVoice
- type InlineType
- type InputContactMessageContent
- type InputLocationMessageContent
- type InputTextMessageContent
- type InputVenueMessageContent
- type Invoice
- type KeyboardButton
- type LabeledPrice
- type Location
- type MaskPosition
- type Message
- type MessageEntity
- type OrderInfo
- type ParseMode
- type PhotoSize
- type PreCheckoutQuery
- type PromoteChatMemberBody
- type ReplyKeyboardMarkup
- type ReplyKeyboardRemove
- type ResponseBool
- type ResponseMessage
- type ResponseParameters
- type ResponseUpdate
- type RestrictChatMemberBody
- type SendAudioLinkBody
- type SendContactBody
- type SendDocumentLinkBody
- type SendGameBody
- type SendInvoiceBody
- type SendLocationBody
- type SendMessageBody
- type SendPhotoLinkBody
- type SendStickerLinkBody
- type SendVenueBody
- type SendVideoLinkBody
- type SendVideoNoteLinkBody
- type SendVoiceLinkBody
- type ShippingAddress
- type ShippingOption
- type ShippingQuery
- type Sticker
- type StickerSet
- type SuccessfulPayment
- type Update
- type User
- type UserProfilePhotos
- type Venue
- type Video
- type VideoNote
- type Voice
- type WebhookInfo
Constants ¶
const ( // ChatTypePrivate captures enum value "private" ChatTypePrivate string = "private" // ChatTypeGroup captures enum value "group" ChatTypeGroup string = "group" // ChatTypeSupergroup captures enum value "supergroup" ChatTypeSupergroup string = "supergroup" // ChatTypeChannel captures enum value "channel" ChatTypeChannel string = "channel" )
const ( // ChatMemberStatusCreator captures enum value "creator" ChatMemberStatusCreator string = "creator" // ChatMemberStatusAdministrator captures enum value "administrator" ChatMemberStatusAdministrator string = "administrator" // ChatMemberStatusMember captures enum value "member" ChatMemberStatusMember string = "member" // ChatMemberStatusRestricted captures enum value "restricted" ChatMemberStatusRestricted string = "restricted" // ChatMemberStatusLeft captures enum value "left" ChatMemberStatusLeft string = "left" // ChatMemberStatusKicked captures enum value "kicked" ChatMemberStatusKicked string = "kicked" )
const ( // MaskPositionPointForehead captures enum value "forehead" MaskPositionPointForehead string = "forehead" // MaskPositionPointEyes captures enum value "eyes" MaskPositionPointEyes string = "eyes" // MaskPositionPointMouth captures enum value "mouth" MaskPositionPointMouth string = "mouth" // MaskPositionPointChin captures enum value "chin" MaskPositionPointChin string = "chin" )
const ( // MessageEntityTypeMention captures enum value "mention" MessageEntityTypeMention string = "mention" // MessageEntityTypeHashtag captures enum value "hashtag" MessageEntityTypeHashtag string = "hashtag" // MessageEntityTypeBotCommand captures enum value "bot_command" MessageEntityTypeBotCommand string = "bot_command" // MessageEntityTypeURL captures enum value "url" MessageEntityTypeURL string = "url" // MessageEntityTypeEmail captures enum value "email" MessageEntityTypeEmail string = "email" // MessageEntityTypeBold captures enum value "bold" MessageEntityTypeBold string = "bold" // MessageEntityTypeItalic captures enum value "italic" MessageEntityTypeItalic string = "italic" // MessageEntityTypeCode captures enum value "code" MessageEntityTypeCode string = "code" // MessageEntityTypePre captures enum value "pre" MessageEntityTypePre string = "pre" // MessageEntityTypeTextLink captures enum value "text_link" MessageEntityTypeTextLink string = "text_link" // MessageEntityTypeTextMention captures enum value "text_mention" MessageEntityTypeTextMention string = "text_mention" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddStickerToSetLinkBody ¶
type AddStickerToSetLinkBody struct {
// emojis
// Required: true
Emojis *string `json:"emojis"`
// mask position
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
// name
// Required: true
Name *string `json:"name"`
// png sticker
// Required: true
PngSticker *string `json:"png_sticker"`
// user id
// Required: true
UserID *int64 `json:"user_id"`
}
AddStickerToSetLinkBody add sticker to set link body swagger:model AddStickerToSetLinkBody
func (*AddStickerToSetLinkBody) MarshalBinary ¶
func (m *AddStickerToSetLinkBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddStickerToSetLinkBody) UnmarshalBinary ¶
func (m *AddStickerToSetLinkBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AllowedUpdate ¶
type AllowedUpdate string
AllowedUpdate allowed update swagger:model AllowedUpdate
const ( // AllowedUpdateMessage captures enum value "message" AllowedUpdateMessage AllowedUpdate = "message" // AllowedUpdateEditedMessage captures enum value "edited_message" AllowedUpdateEditedMessage AllowedUpdate = "edited_message" // AllowedUpdateChannelPost captures enum value "channel_post" AllowedUpdateChannelPost AllowedUpdate = "channel_post" // AllowedUpdateEditedChannelPost captures enum value "edited_channel_post" AllowedUpdateEditedChannelPost AllowedUpdate = "edited_channel_post" // AllowedUpdateInlineQuery captures enum value "inline_query" AllowedUpdateInlineQuery AllowedUpdate = "inline_query" // AllowedUpdateChosenInlineResult captures enum value "chosen_inline_result" AllowedUpdateChosenInlineResult AllowedUpdate = "chosen_inline_result" // AllowedUpdateCallbackQuery captures enum value "callback_query" AllowedUpdateCallbackQuery AllowedUpdate = "callback_query" )
type Animation ¶
type Animation struct {
// file id
// Required: true
FileID *string `json:"file_id"`
// file name
FileName string `json:"file_name,omitempty"`
// file size
FileSize int64 `json:"file_size,omitempty"`
// mime type
MimeType string `json:"mime_type,omitempty"`
// thumb
Thumb *PhotoSize `json:"thumb,omitempty"`
}
Animation animation swagger:model Animation
func (*Animation) MarshalBinary ¶
MarshalBinary interface implementation
func (*Animation) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AnswerInlineQueryBody ¶
type AnswerInlineQueryBody struct {
// cache time
CacheTime int64 `json:"cache_time,omitempty"`
// inline query id
// Required: true
InlineQueryID *string `json:"inline_query_id"`
// is personal
IsPersonal bool `json:"is_personal,omitempty"`
// next offset
NextOffset string `json:"next_offset,omitempty"`
// results
// Required: true
Results []interface{} `json:"results"`
// switch pm parameter
SwitchPmParameter string `json:"switch_pm_parameter,omitempty"`
// switch pm text
SwitchPmText string `json:"switch_pm_text,omitempty"`
}
AnswerInlineQueryBody answer inline query body swagger:model AnswerInlineQueryBody
func (*AnswerInlineQueryBody) MarshalBinary ¶
func (m *AnswerInlineQueryBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AnswerInlineQueryBody) UnmarshalBinary ¶
func (m *AnswerInlineQueryBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AnswerShippingQueryBody ¶
type AnswerShippingQueryBody struct {
// error message
ErrorMessage string `json:"error_message,omitempty"`
// ok
// Required: true
Ok *bool `json:"ok"`
// shipping options
ShippingOptions []*ShippingOption `json:"shipping_options"`
// shipping query id
// Required: true
ShippingQueryID *string `json:"shipping_query_id"`
}
AnswerShippingQueryBody answer shipping query body swagger:model AnswerShippingQueryBody
func (*AnswerShippingQueryBody) MarshalBinary ¶
func (m *AnswerShippingQueryBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AnswerShippingQueryBody) UnmarshalBinary ¶
func (m *AnswerShippingQueryBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Audio ¶
type Audio struct {
// duration
Duration int64 `json:"duration,omitempty"`
// file id
FileID string `json:"file_id,omitempty"`
// file size
FileSize int64 `json:"file_size,omitempty"`
// mime type
MimeType string `json:"mime_type,omitempty"`
// performer
Performer string `json:"performer,omitempty"`
// title
Title string `json:"title,omitempty"`
}
Audio audio swagger:model Audio
func (*Audio) MarshalBinary ¶
MarshalBinary interface implementation
func (*Audio) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CallbackGame ¶
type CallbackGame interface{}
CallbackGame callback game swagger:model CallbackGame
type CallbackQuery ¶
type CallbackQuery struct {
// chat instance
ChatInstance string `json:"chat_instance,omitempty"`
// data
Data string `json:"data,omitempty"`
// from
From *User `json:"from,omitempty"`
// game short name
GameShortName string `json:"game_short_name,omitempty"`
// id
ID string `json:"id,omitempty"`
// inline message id
InlineMessageID string `json:"inline_message_id,omitempty"`
// message
Message *Message `json:"message,omitempty"`
}
CallbackQuery callback query swagger:model CallbackQuery
func (*CallbackQuery) MarshalBinary ¶
func (m *CallbackQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CallbackQuery) UnmarshalBinary ¶
func (m *CallbackQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Chat ¶
type Chat struct {
// all members are administrators
AllMembersAreAdministrators bool `json:"all_members_are_administrators,omitempty"`
// description
Description string `json:"description,omitempty"`
// first name
FirstName string `json:"first_name,omitempty"`
// id
// Required: true
ID int64 `json:"id"`
// invite link
InviteLink string `json:"invite_link,omitempty"`
// last name
LastName string `json:"last_name,omitempty"`
// photo
Photo *ChatPhoto `json:"photo,omitempty"`
// pinned message
PinnedMessage *Message `json:"pinned_message,omitempty"`
// title
Title string `json:"title,omitempty"`
// type
// Required: true
Type *string `json:"type"`
// username
Username string `json:"username,omitempty"`
}
Chat chat swagger:model Chat
func (*Chat) MarshalBinary ¶
MarshalBinary interface implementation
func (*Chat) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ChatMember ¶
type ChatMember struct {
// can add web page previews
CanAddWebPagePreviews bool `json:"can_add_web_page_previews,omitempty"`
// can be edited
CanBeEdited bool `json:"can_be_edited,omitempty"`
// can change info
CanChangeInfo bool `json:"can_change_info,omitempty"`
// can delete messages
CanDeleteMessages bool `json:"can_delete_messages,omitempty"`
// can edit messages
CanEditMessages bool `json:"can_edit_messages,omitempty"`
// can invite users
CanInviteUsers bool `json:"can_invite_users,omitempty"`
// can pin messages
CanPinMessages bool `json:"can_pin_messages,omitempty"`
// can post messages
CanPostMessages bool `json:"can_post_messages,omitempty"`
// can promote members
CanPromoteMembers bool `json:"can_promote_members,omitempty"`
// can restrict members
CanRestrictMembers bool `json:"can_restrict_members,omitempty"`
// can send media messages
CanSendMediaMessages bool `json:"can_send_media_messages,omitempty"`
// can send messages
CanSendMessages bool `json:"can_send_messages,omitempty"`
// can send other messages
CanSendOtherMessages bool `json:"can_send_other_messages,omitempty"`
// status
// Required: true
Status *string `json:"status"`
// until date
UntilDate int64 `json:"until_date,omitempty"`
// user
// Required: true
User *User `json:"user"`
}
ChatMember chat member swagger:model ChatMember
func (*ChatMember) MarshalBinary ¶
func (m *ChatMember) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChatMember) UnmarshalBinary ¶
func (m *ChatMember) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChatPhoto ¶
type ChatPhoto struct {
// big file id
BigFileID string `json:"big_file_id,omitempty"`
// small file id
SmallFileID string `json:"small_file_id,omitempty"`
}
ChatPhoto chat photo swagger:model ChatPhoto
func (*ChatPhoto) MarshalBinary ¶
MarshalBinary interface implementation
func (*ChatPhoto) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ChosenInlineResult ¶
type ChosenInlineResult struct {
// from
// Required: true
From *User `json:"from"`
// inline message id
InlineMessageID string `json:"inline_message_id,omitempty"`
// location
Location *Location `json:"location,omitempty"`
// query
// Required: true
Query *string `json:"query"`
// result id
// Required: true
ResultID *string `json:"result_id"`
}
ChosenInlineResult chosen inline result swagger:model ChosenInlineResult
func (*ChosenInlineResult) MarshalBinary ¶
func (m *ChosenInlineResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChosenInlineResult) UnmarshalBinary ¶
func (m *ChosenInlineResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Contact ¶
type Contact struct {
// first name
FirstName string `json:"first_name,omitempty"`
// last name
LastName string `json:"last_name,omitempty"`
// phone number
PhoneNumber string `json:"phone_number,omitempty"`
// user id
UserID int64 `json:"user_id,omitempty"`
}
Contact contact swagger:model Contact
func (*Contact) MarshalBinary ¶
MarshalBinary interface implementation
func (*Contact) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CreateNewStickerSetLinkBody ¶
type CreateNewStickerSetLinkBody struct {
// emojis
// Required: true
Emojis *string `json:"emojis"`
// is masks
IsMasks bool `json:"is_masks,omitempty"`
// mask position
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
// name
// Required: true
Name *string `json:"name"`
// png sticker
// Required: true
PngSticker *string `json:"png_sticker"`
// title
// Required: true
Title *string `json:"title"`
// user id
// Required: true
UserID *int64 `json:"user_id"`
}
CreateNewStickerSetLinkBody create new sticker set link body swagger:model CreateNewStickerSetLinkBody
func (*CreateNewStickerSetLinkBody) MarshalBinary ¶
func (m *CreateNewStickerSetLinkBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateNewStickerSetLinkBody) UnmarshalBinary ¶
func (m *CreateNewStickerSetLinkBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Document ¶
type Document struct {
// file id
FileID string `json:"file_id,omitempty"`
// file name
FileName string `json:"file_name,omitempty"`
// file size
FileSize int64 `json:"file_size,omitempty"`
// mime type
MimeType string `json:"mime_type,omitempty"`
// thumb
Thumb *PhotoSize `json:"thumb,omitempty"`
}
Document document swagger:model Document
func (*Document) MarshalBinary ¶
MarshalBinary interface implementation
func (*Document) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type EditMessageCaptionBody ¶
type EditMessageCaptionBody struct {
// caption
Caption string `json:"caption,omitempty"`
// chat id
ChatID interface{} `json:"chat_id,omitempty"`
// inline message id
InlineMessageID string `json:"inline_message_id,omitempty"`
// message id
MessageID int64 `json:"message_id,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageCaptionBody edit message caption body swagger:model EditMessageCaptionBody
func (*EditMessageCaptionBody) MarshalBinary ¶
func (m *EditMessageCaptionBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditMessageCaptionBody) UnmarshalBinary ¶
func (m *EditMessageCaptionBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditMessageReplyMarkupBody ¶
type EditMessageReplyMarkupBody struct {
// chat id
ChatID interface{} `json:"chat_id,omitempty"`
// inline message id
InlineMessageID string `json:"inline_message_id,omitempty"`
// message id
MessageID int64 `json:"message_id,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageReplyMarkupBody edit message reply markup body swagger:model EditMessageReplyMarkupBody
func (*EditMessageReplyMarkupBody) MarshalBinary ¶
func (m *EditMessageReplyMarkupBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditMessageReplyMarkupBody) UnmarshalBinary ¶
func (m *EditMessageReplyMarkupBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditMessageTextBody ¶
type EditMessageTextBody struct {
// chat id
ChatID interface{} `json:"chat_id,omitempty"`
// disable web page preview
DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
// inline message id
InlineMessageID string `json:"inline_message_id,omitempty"`
// message id
MessageID int64 `json:"message_id,omitempty"`
// parse mode
ParseMode ParseMode `json:"parse_mode,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// text
// Required: true
Text *string `json:"text"`
}
EditMessageTextBody edit message text body swagger:model EditMessageTextBody
func (*EditMessageTextBody) MarshalBinary ¶
func (m *EditMessageTextBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditMessageTextBody) UnmarshalBinary ¶
func (m *EditMessageTextBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// description
Description string `json:"description,omitempty"`
// error code
ErrorCode int64 `json:"error_code,omitempty"`
// ok
Ok bool `json:"ok,omitempty"`
}
Error error swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type File ¶
type File struct {
// file id
FileID string `json:"file_id,omitempty"`
// file path
FilePath string `json:"file_path,omitempty"`
// file size
FileSize int64 `json:"file_size,omitempty"`
}
File file swagger:model File
func (*File) MarshalBinary ¶
MarshalBinary interface implementation
func (*File) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ForceReply ¶
type ForceReply struct {
// force reply
ForceReply bool `json:"force_reply,omitempty"`
// selective
Selective bool `json:"selective,omitempty"`
}
ForceReply force reply swagger:model ForceReply
func (*ForceReply) MarshalBinary ¶
func (m *ForceReply) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ForceReply) UnmarshalBinary ¶
func (m *ForceReply) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Game ¶
type Game struct {
// animation
Animation *Animation `json:"animation,omitempty"`
// description
// Required: true
Description *string `json:"description"`
// photo
// Required: true
Photo []*PhotoSize `json:"photo"`
// text
Text string `json:"text,omitempty"`
// text entities
TextEntities []*MessageEntity `json:"text_entities"`
// title
// Required: true
Title *string `json:"title"`
}
Game game swagger:model Game
func (*Game) MarshalBinary ¶
MarshalBinary interface implementation
func (*Game) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GameHighScore ¶
type GameHighScore struct {
// position
Position int64 `json:"position,omitempty"`
// score
Score int64 `json:"score,omitempty"`
// user
User *User `json:"user,omitempty"`
}
GameHighScore game high score swagger:model GameHighScore
func (*GameHighScore) MarshalBinary ¶
func (m *GameHighScore) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GameHighScore) UnmarshalBinary ¶
func (m *GameHighScore) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineKeyboardButton ¶
type InlineKeyboardButton struct {
// callback data
CallbackData string `json:"callback_data,omitempty"`
// callback game
CallbackGame CallbackGame `json:"callback_game,omitempty"`
// pay
Pay bool `json:"pay,omitempty"`
// switch inline query
SwitchInlineQuery string `json:"switch_inline_query,omitempty"`
// switch inline query current chat
SwitchInlineQueryCurrentChat string `json:"switch_inline_query_current_chat,omitempty"`
// text
Text string `json:"text,omitempty"`
// url
URL string `json:"url,omitempty"`
}
InlineKeyboardButton inline keyboard button swagger:model InlineKeyboardButton
func (*InlineKeyboardButton) MarshalBinary ¶
func (m *InlineKeyboardButton) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineKeyboardButton) UnmarshalBinary ¶
func (m *InlineKeyboardButton) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineKeyboardMarkup ¶
type InlineKeyboardMarkup struct {
// inline keyboard
InlineKeyboard [][]*InlineKeyboardButton `json:"inline_keyboard"`
}
InlineKeyboardMarkup inline keyboard markup swagger:model InlineKeyboardMarkup
func (*InlineKeyboardMarkup) MarshalBinary ¶
func (m *InlineKeyboardMarkup) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineKeyboardMarkup) UnmarshalBinary ¶
func (m *InlineKeyboardMarkup) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQuery ¶
type InlineQuery struct {
// from
From *User `json:"from,omitempty"`
// id
ID string `json:"id,omitempty"`
// location
Location *Location `json:"location,omitempty"`
// offset
Offset string `json:"offset,omitempty"`
// query
Query string `json:"query,omitempty"`
}
InlineQuery inline query swagger:model InlineQuery
func (*InlineQuery) MarshalBinary ¶
func (m *InlineQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQuery) UnmarshalBinary ¶
func (m *InlineQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultArticle ¶
type InlineQueryResultArticle struct {
// description
Description string `json:"description,omitempty"`
// hide url
HideURL bool `json:"hide_url,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
// Required: true
InputMessageContent interface{} `json:"input_message_content"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// thumb height
ThumbHeight int64 `json:"thumb_height,omitempty"`
// thumb url
ThumbURL string `json:"thumb_url,omitempty"`
// thumb width
ThumbWidth int64 `json:"thumb_width,omitempty"`
// title
// Required: true
Title *string `json:"title"`
// type
// Required: true
Type InlineType `json:"type"`
// url
URL string `json:"url,omitempty"`
}
InlineQueryResultArticle inline query result article swagger:model InlineQueryResultArticle
func (*InlineQueryResultArticle) MarshalBinary ¶
func (m *InlineQueryResultArticle) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultArticle) UnmarshalBinary ¶
func (m *InlineQueryResultArticle) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultAudio ¶
type InlineQueryResultAudio struct {
// audio duration
AudioDuration int64 `json:"audio_duration,omitempty"`
// audio url
// Required: true
AudioURL *string `json:"audio_url"`
// caption
Caption string `json:"caption,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// performer
Performer string `json:"performer,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// title
// Required: true
Title *string `json:"title"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultAudio inline query result audio swagger:model InlineQueryResultAudio
func (*InlineQueryResultAudio) MarshalBinary ¶
func (m *InlineQueryResultAudio) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultAudio) UnmarshalBinary ¶
func (m *InlineQueryResultAudio) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultCachedAudio ¶
type InlineQueryResultCachedAudio struct {
// audio file id
// Required: true
AudioFileID *string `json:"audio_file_id"`
// caption
Caption string `json:"caption,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultCachedAudio inline query result cached audio swagger:model InlineQueryResultCachedAudio
func (*InlineQueryResultCachedAudio) MarshalBinary ¶
func (m *InlineQueryResultCachedAudio) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultCachedAudio) UnmarshalBinary ¶
func (m *InlineQueryResultCachedAudio) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultCachedDocument ¶
type InlineQueryResultCachedDocument struct {
// caption
Caption string `json:"caption,omitempty"`
// description
Description string `json:"description,omitempty"`
// document file id
// Required: true
DocumentFileID *string `json:"document_file_id"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultCachedDocument inline query result cached document swagger:model InlineQueryResultCachedDocument
func (*InlineQueryResultCachedDocument) MarshalBinary ¶
func (m *InlineQueryResultCachedDocument) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultCachedDocument) UnmarshalBinary ¶
func (m *InlineQueryResultCachedDocument) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultCachedGif ¶
type InlineQueryResultCachedGif struct {
// caption
Caption string `json:"caption,omitempty"`
// gif file id
// Required: true
GifFileID *string `json:"gif_file_id"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// title
Title string `json:"title,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultCachedGif inline query result cached gif swagger:model InlineQueryResultCachedGif
func (*InlineQueryResultCachedGif) MarshalBinary ¶
func (m *InlineQueryResultCachedGif) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultCachedGif) UnmarshalBinary ¶
func (m *InlineQueryResultCachedGif) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultCachedMpeg4Gif ¶
type InlineQueryResultCachedMpeg4Gif struct {
// caption
Caption string `json:"caption,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// mpeg4 file id
// Required: true
Mpeg4FileID *string `json:"mpeg4_file_id"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// title
Title string `json:"title,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultCachedMpeg4Gif inline query result cached mpeg4 gif swagger:model InlineQueryResultCachedMpeg4Gif
func (*InlineQueryResultCachedMpeg4Gif) MarshalBinary ¶
func (m *InlineQueryResultCachedMpeg4Gif) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultCachedMpeg4Gif) UnmarshalBinary ¶
func (m *InlineQueryResultCachedMpeg4Gif) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultCachedPhoto ¶
type InlineQueryResultCachedPhoto struct {
// caption
Caption string `json:"caption,omitempty"`
// description
Description string `json:"description,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// photo file id
// Required: true
PhotoFileID *string `json:"photo_file_id"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// title
Title string `json:"title,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultCachedPhoto inline query result cached photo swagger:model InlineQueryResultCachedPhoto
func (*InlineQueryResultCachedPhoto) MarshalBinary ¶
func (m *InlineQueryResultCachedPhoto) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultCachedPhoto) UnmarshalBinary ¶
func (m *InlineQueryResultCachedPhoto) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultCachedSticker ¶
type InlineQueryResultCachedSticker struct {
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// sticker file id
// Required: true
StickerFileID *string `json:"sticker_file_id"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultCachedSticker inline query result cached sticker swagger:model InlineQueryResultCachedSticker
func (*InlineQueryResultCachedSticker) MarshalBinary ¶
func (m *InlineQueryResultCachedSticker) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultCachedSticker) UnmarshalBinary ¶
func (m *InlineQueryResultCachedSticker) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultCachedVideo ¶
type InlineQueryResultCachedVideo struct {
// caption
Caption string `json:"caption,omitempty"`
// description
Description string `json:"description,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// title
Title string `json:"title,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
// video file id
// Required: true
VideoFileID *string `json:"video_file_id"`
}
InlineQueryResultCachedVideo inline query result cached video swagger:model InlineQueryResultCachedVideo
func (*InlineQueryResultCachedVideo) MarshalBinary ¶
func (m *InlineQueryResultCachedVideo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultCachedVideo) UnmarshalBinary ¶
func (m *InlineQueryResultCachedVideo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultCachedVoice ¶
type InlineQueryResultCachedVoice struct {
// caption
Caption string `json:"caption,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// title
Title string `json:"title,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
// voice file id
// Required: true
VoiceFileID *string `json:"voice_file_id"`
}
InlineQueryResultCachedVoice inline query result cached voice swagger:model InlineQueryResultCachedVoice
func (*InlineQueryResultCachedVoice) MarshalBinary ¶
func (m *InlineQueryResultCachedVoice) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultCachedVoice) UnmarshalBinary ¶
func (m *InlineQueryResultCachedVoice) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultContact ¶
type InlineQueryResultContact struct {
// first name
// Required: true
FirstName *string `json:"first_name"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// last name
LastName string `json:"last_name,omitempty"`
// phone number
// Required: true
PhoneNumber *string `json:"phone_number"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// thumb height
ThumbHeight int64 `json:"thumb_height,omitempty"`
// thumb url
ThumbURL string `json:"thumb_url,omitempty"`
// thumb width
ThumbWidth int64 `json:"thumb_width,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultContact inline query result contact swagger:model InlineQueryResultContact
func (*InlineQueryResultContact) MarshalBinary ¶
func (m *InlineQueryResultContact) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultContact) UnmarshalBinary ¶
func (m *InlineQueryResultContact) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultDocument ¶
type InlineQueryResultDocument struct {
// caption
Caption string `json:"caption,omitempty"`
// description
Description string `json:"description,omitempty"`
// document url
// Required: true
DocumentURL *string `json:"document_url"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// mime type
// Required: true
MimeType *string `json:"mime_type"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// thumb height
ThumbHeight int64 `json:"thumb_height,omitempty"`
// thumb url
ThumbURL string `json:"thumb_url,omitempty"`
// thumb width
ThumbWidth int64 `json:"thumb_width,omitempty"`
// title
// Required: true
Title *string `json:"title"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultDocument inline query result document swagger:model InlineQueryResultDocument
func (*InlineQueryResultDocument) MarshalBinary ¶
func (m *InlineQueryResultDocument) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultDocument) UnmarshalBinary ¶
func (m *InlineQueryResultDocument) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultGame ¶
type InlineQueryResultGame struct {
// game short name
// Required: true
GameShortName *string `json:"game_short_name"`
// id
// Required: true
ID *string `json:"id"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultGame inline query result game swagger:model InlineQueryResultGame
func (*InlineQueryResultGame) MarshalBinary ¶
func (m *InlineQueryResultGame) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultGame) UnmarshalBinary ¶
func (m *InlineQueryResultGame) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultGif ¶
type InlineQueryResultGif struct {
// caption
Caption string `json:"caption,omitempty"`
// gif duration
GifDuration int64 `json:"gif_duration,omitempty"`
// gif height
GifHeight int64 `json:"gif_height,omitempty"`
// gif url
// Required: true
GifURL *string `json:"gif_url"`
// gif width
GifWidth int64 `json:"gif_width,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// thumb url
// Required: true
ThumbURL *string `json:"thumb_url"`
// title
Title string `json:"title,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultGif inline query result gif swagger:model InlineQueryResultGif
func (*InlineQueryResultGif) MarshalBinary ¶
func (m *InlineQueryResultGif) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultGif) UnmarshalBinary ¶
func (m *InlineQueryResultGif) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultLocation ¶
type InlineQueryResultLocation struct {
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// latitude
// Required: true
Latitude *float64 `json:"latitude"`
// longitude
// Required: true
Longitude *float64 `json:"longitude"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// thumb height
ThumbHeight int64 `json:"thumb_height,omitempty"`
// thumb url
ThumbURL string `json:"thumb_url,omitempty"`
// thumb width
ThumbWidth int64 `json:"thumb_width,omitempty"`
// title
// Required: true
Title *string `json:"title"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultLocation inline query result location swagger:model InlineQueryResultLocation
func (*InlineQueryResultLocation) MarshalBinary ¶
func (m *InlineQueryResultLocation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultLocation) UnmarshalBinary ¶
func (m *InlineQueryResultLocation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultMpeg4Gif ¶
type InlineQueryResultMpeg4Gif struct {
// caption
Caption string `json:"caption,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// mpeg4 duration
Mpeg4Duration int64 `json:"mpeg4_duration,omitempty"`
// mpeg4 height
Mpeg4Height int64 `json:"mpeg4_height,omitempty"`
// mpeg4 url
// Required: true
Mpeg4URL *string `json:"mpeg4_url"`
// mpeg4 width
Mpeg4Width int64 `json:"mpeg4_width,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// thumb url
// Required: true
ThumbURL *string `json:"thumb_url"`
// title
Title string `json:"title,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultMpeg4Gif inline query result mpeg4 gif swagger:model InlineQueryResultMpeg4Gif
func (*InlineQueryResultMpeg4Gif) MarshalBinary ¶
func (m *InlineQueryResultMpeg4Gif) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultMpeg4Gif) UnmarshalBinary ¶
func (m *InlineQueryResultMpeg4Gif) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultPhoto ¶
type InlineQueryResultPhoto struct {
// caption
Caption string `json:"caption,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// photo height
PhotoHeight int64 `json:"photo_height,omitempty"`
// photo url
// Required: true
PhotoURL *string `json:"photo_url"`
// photo width
PhotoWidth int64 `json:"photo_width,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// thumb url
// Required: true
ThumbURL *string `json:"thumb_url"`
// title
Title string `json:"title,omitempty"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultPhoto inline query result photo swagger:model InlineQueryResultPhoto
func (*InlineQueryResultPhoto) MarshalBinary ¶
func (m *InlineQueryResultPhoto) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultPhoto) UnmarshalBinary ¶
func (m *InlineQueryResultPhoto) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultVenue ¶
type InlineQueryResultVenue struct {
// address
// Required: true
Address *string `json:"address"`
// foursquare id
FoursquareID string `json:"foursquare_id,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// latitude
// Required: true
Latitude *float64 `json:"latitude"`
// longitude
// Required: true
Longitude *float64 `json:"longitude"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// thumb height
ThumbHeight int64 `json:"thumb_height,omitempty"`
// thumb url
ThumbURL string `json:"thumb_url,omitempty"`
// thumb width
ThumbWidth int64 `json:"thumb_width,omitempty"`
// title
// Required: true
Title *string `json:"title"`
// type
// Required: true
Type InlineType `json:"type"`
}
InlineQueryResultVenue inline query result venue swagger:model InlineQueryResultVenue
func (*InlineQueryResultVenue) MarshalBinary ¶
func (m *InlineQueryResultVenue) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultVenue) UnmarshalBinary ¶
func (m *InlineQueryResultVenue) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultVideo ¶
type InlineQueryResultVideo struct {
// caption
Caption string `json:"caption,omitempty"`
// description
Description string `json:"description,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// mime type
// Required: true
MimeType *string `json:"mime_type"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// thumb url
// Required: true
ThumbURL *string `json:"thumb_url"`
// title
// Required: true
Title *string `json:"title"`
// type
// Required: true
Type InlineType `json:"type"`
// video duration
VideoDuration int64 `json:"video_duration,omitempty"`
// video height
VideoHeight int64 `json:"video_height,omitempty"`
// video url
// Required: true
VideoURL *string `json:"video_url"`
// video width
VideoWidth int64 `json:"video_width,omitempty"`
}
InlineQueryResultVideo inline query result video swagger:model InlineQueryResultVideo
func (*InlineQueryResultVideo) MarshalBinary ¶
func (m *InlineQueryResultVideo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultVideo) UnmarshalBinary ¶
func (m *InlineQueryResultVideo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineQueryResultVoice ¶
type InlineQueryResultVoice struct {
// caption
Caption string `json:"caption,omitempty"`
// id
// Required: true
ID *string `json:"id"`
// input message content
InputMessageContent interface{} `json:"input_message_content,omitempty"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// title
// Required: true
Title *string `json:"title"`
// type
// Required: true
Type InlineType `json:"type"`
// voice duration
VoiceDuration int64 `json:"voice_duration,omitempty"`
// voice url
// Required: true
VoiceURL *string `json:"voice_url"`
}
InlineQueryResultVoice inline query result voice swagger:model InlineQueryResultVoice
func (*InlineQueryResultVoice) MarshalBinary ¶
func (m *InlineQueryResultVoice) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineQueryResultVoice) UnmarshalBinary ¶
func (m *InlineQueryResultVoice) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineType ¶
type InlineType string
InlineType inline type swagger:model InlineType
const ( // InlineTypeArticle captures enum value "article" InlineTypeArticle InlineType = "article" // InlineTypeAudio captures enum value "audio" InlineTypeAudio InlineType = "audio" // InlineTypeContact captures enum value "contact" InlineTypeContact InlineType = "contact" // InlineTypeGame captures enum value "game" InlineTypeGame InlineType = "game" // InlineTypeDocument captures enum value "document" InlineTypeDocument InlineType = "document" // InlineTypeGif captures enum value "gif" InlineTypeGif InlineType = "gif" // InlineTypeLocation captures enum value "location" InlineTypeLocation InlineType = "location" // InlineTypeMpeg4Gif captures enum value "mpeg4_gif" InlineTypeMpeg4Gif InlineType = "mpeg4_gif" // InlineTypePhoto captures enum value "photo" InlineTypePhoto InlineType = "photo" // InlineTypeVenue captures enum value "venue" InlineTypeVenue InlineType = "venue" // InlineTypeVideo captures enum value "video" InlineTypeVideo InlineType = "video" // InlineTypeVoice captures enum value "voice" InlineTypeVoice InlineType = "voice" // InlineTypeSticker captures enum value "sticker" InlineTypeSticker InlineType = "sticker" )
type InputContactMessageContent ¶
type InputContactMessageContent struct {
// first name
// Required: true
FirstName *string `json:"first_name"`
// last name
LastName string `json:"last_name,omitempty"`
// phone number
// Required: true
PhoneNumber *string `json:"phone_number"`
}
InputContactMessageContent input contact message content swagger:model InputContactMessageContent
func (*InputContactMessageContent) MarshalBinary ¶
func (m *InputContactMessageContent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InputContactMessageContent) UnmarshalBinary ¶
func (m *InputContactMessageContent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InputLocationMessageContent ¶
type InputLocationMessageContent struct {
// latitude
// Required: true
Latitude *float64 `json:"latitude"`
// longitude
// Required: true
Longitude *float64 `json:"longitude"`
}
InputLocationMessageContent input location message content swagger:model InputLocationMessageContent
func (*InputLocationMessageContent) MarshalBinary ¶
func (m *InputLocationMessageContent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InputLocationMessageContent) UnmarshalBinary ¶
func (m *InputLocationMessageContent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InputTextMessageContent ¶
type InputTextMessageContent struct {
// disable web page preview
DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
// message text
// Required: true
MessageText *string `json:"message_text"`
// parse mode
ParseMode ParseMode `json:"parse_mode,omitempty"`
}
InputTextMessageContent input text message content swagger:model InputTextMessageContent
func (*InputTextMessageContent) MarshalBinary ¶
func (m *InputTextMessageContent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InputTextMessageContent) UnmarshalBinary ¶
func (m *InputTextMessageContent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InputVenueMessageContent ¶
type InputVenueMessageContent struct {
// address
// Required: true
Address *string `json:"address"`
// foursquare id
FoursquareID string `json:"foursquare_id,omitempty"`
// latitude
// Required: true
Latitude *float64 `json:"latitude"`
// longitude
// Required: true
Longitude *float64 `json:"longitude"`
// title
// Required: true
Title *string `json:"title"`
}
InputVenueMessageContent input venue message content swagger:model InputVenueMessageContent
func (*InputVenueMessageContent) MarshalBinary ¶
func (m *InputVenueMessageContent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InputVenueMessageContent) UnmarshalBinary ¶
func (m *InputVenueMessageContent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Invoice ¶
type Invoice struct {
// currency
Currency string `json:"currency,omitempty"`
// description
Description string `json:"description,omitempty"`
// start parameter
StartParameter string `json:"start_parameter,omitempty"`
// title
Title string `json:"title,omitempty"`
// total amount
TotalAmount int64 `json:"total_amount,omitempty"`
}
Invoice invoice swagger:model Invoice
func (*Invoice) MarshalBinary ¶
MarshalBinary interface implementation
func (*Invoice) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type KeyboardButton ¶
type KeyboardButton struct {
// request contact
RequestContact bool `json:"request_contact,omitempty"`
// request location
RequestLocation bool `json:"request_location,omitempty"`
// text
Text string `json:"text,omitempty"`
}
KeyboardButton keyboard button swagger:model KeyboardButton
func (*KeyboardButton) MarshalBinary ¶
func (m *KeyboardButton) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*KeyboardButton) UnmarshalBinary ¶
func (m *KeyboardButton) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LabeledPrice ¶
type LabeledPrice struct {
// amount
Amount int64 `json:"amount,omitempty"`
// label
Label string `json:"label,omitempty"`
}
LabeledPrice labeled price swagger:model LabeledPrice
func (*LabeledPrice) MarshalBinary ¶
func (m *LabeledPrice) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LabeledPrice) UnmarshalBinary ¶
func (m *LabeledPrice) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Location ¶
type Location struct {
// latitude
Latitude float64 `json:"latitude,omitempty"`
// longitude
Longitude float64 `json:"longitude,omitempty"`
}
Location location swagger:model Location
func (*Location) MarshalBinary ¶
MarshalBinary interface implementation
func (*Location) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MaskPosition ¶
type MaskPosition struct {
// point
Point string `json:"point,omitempty"`
// x shift
XShift float64 `json:"x_shift,omitempty"`
// y shift
YShift float64 `json:"y_shift,omitempty"`
// zoom
Zoom float64 `json:"zoom,omitempty"`
}
MaskPosition mask position swagger:model MaskPosition
func (*MaskPosition) MarshalBinary ¶
func (m *MaskPosition) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MaskPosition) UnmarshalBinary ¶
func (m *MaskPosition) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Message ¶
type Message struct {
// audio
Audio *Audio `json:"audio,omitempty"`
// author signature
AuthorSignature string `json:"author_signature,omitempty"`
// caption
Caption string `json:"caption,omitempty"`
// channel chat created
ChannelChatCreated bool `json:"channel_chat_created,omitempty"`
// chat
Chat *Chat `json:"chat,omitempty"`
// contact
Contact *Contact `json:"contact,omitempty"`
// date
Date int64 `json:"date,omitempty"`
// delete chat photo
DeleteChatPhoto bool `json:"delete_chat_photo,omitempty"`
// document
Document *Document `json:"document,omitempty"`
// edit date
EditDate int64 `json:"edit_date,omitempty"`
// entities
Entities []*MessageEntity `json:"entities"`
// forward date
ForwardDate int64 `json:"forward_date,omitempty"`
// forward from
ForwardFrom *User `json:"forward_from,omitempty"`
// forward from chat
ForwardFromChat *Chat `json:"forward_from_chat,omitempty"`
// forward from message id
ForwardFromMessageID int64 `json:"forward_from_message_id,omitempty"`
// forward signature
ForwardSignature string `json:"forward_signature,omitempty"`
// from
From *User `json:"from,omitempty"`
// game
Game *Game `json:"game,omitempty"`
// group chat created
GroupChatCreated bool `json:"group_chat_created,omitempty"`
// left chat member
LeftChatMember *User `json:"left_chat_member,omitempty"`
// location
Location *Location `json:"location,omitempty"`
// message id
MessageID int64 `json:"message_id,omitempty"`
// migrate from chat id
MigrateFromChatID int64 `json:"migrate_from_chat_id,omitempty"`
// migrate to chat id
MigrateToChatID int64 `json:"migrate_to_chat_id,omitempty"`
// new chat members
NewChatMembers []*User `json:"new_chat_members"`
// new chat photo
NewChatPhoto []*PhotoSize `json:"new_chat_photo"`
// new chat title
NewChatTitle string `json:"new_chat_title,omitempty"`
// photo
Photo []*PhotoSize `json:"photo"`
// pinned message
PinnedMessage *Message `json:"pinned_message,omitempty"`
// reply to message
ReplyToMessage *Message `json:"reply_to_message,omitempty"`
// sticker
Sticker *Sticker `json:"sticker,omitempty"`
// successful payment
SuccessfulPayment *SuccessfulPayment `json:"successful_payment,omitempty"`
// supergroup chat created
SupergroupChatCreated bool `json:"supergroup_chat_created,omitempty"`
// text
Text string `json:"text,omitempty"`
// venue
Venue *Venue `json:"venue,omitempty"`
// video
Video *Video `json:"video,omitempty"`
// video note
VideoNote *VideoNote `json:"video_note,omitempty"`
// voice
Voice *Voice `json:"voice,omitempty"`
}
Message message swagger:model Message
func (*Message) MarshalBinary ¶
MarshalBinary interface implementation
func (*Message) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MessageEntity ¶
type MessageEntity struct {
// length
Length int64 `json:"length,omitempty"`
// offset
Offset int64 `json:"offset,omitempty"`
// type
Type string `json:"type,omitempty"`
// url
URL string `json:"url,omitempty"`
// user
User *User `json:"user,omitempty"`
}
MessageEntity message entity swagger:model MessageEntity
func (*MessageEntity) MarshalBinary ¶
func (m *MessageEntity) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MessageEntity) UnmarshalBinary ¶
func (m *MessageEntity) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OrderInfo ¶
type OrderInfo struct {
// email
Email string `json:"email,omitempty"`
// name
Name string `json:"name,omitempty"`
// phone number
PhoneNumber string `json:"phone_number,omitempty"`
// shipping address
ShippingAddress *ShippingAddress `json:"shipping_address,omitempty"`
}
OrderInfo order info swagger:model OrderInfo
func (*OrderInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*OrderInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PhotoSize ¶
type PhotoSize struct {
// file id
FileID string `json:"file_id,omitempty"`
// file size
FileSize int64 `json:"file_size,omitempty"`
// height
Height int64 `json:"height,omitempty"`
// width
Width int64 `json:"width,omitempty"`
}
PhotoSize photo size swagger:model PhotoSize
func (*PhotoSize) MarshalBinary ¶
MarshalBinary interface implementation
func (*PhotoSize) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PreCheckoutQuery ¶
type PreCheckoutQuery struct {
// currency
Currency string `json:"currency,omitempty"`
// from
From *User `json:"from,omitempty"`
// id
ID string `json:"id,omitempty"`
// invoice payload
InvoicePayload string `json:"invoice_payload,omitempty"`
// order info
OrderInfo *OrderInfo `json:"order_info,omitempty"`
// shipping option id
ShippingOptionID string `json:"shipping_option_id,omitempty"`
// total amount
TotalAmount int64 `json:"total_amount,omitempty"`
}
PreCheckoutQuery pre checkout query swagger:model PreCheckoutQuery
func (*PreCheckoutQuery) MarshalBinary ¶
func (m *PreCheckoutQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreCheckoutQuery) UnmarshalBinary ¶
func (m *PreCheckoutQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PromoteChatMemberBody ¶
type PromoteChatMemberBody struct {
// can change info
CanChangeInfo *bool `json:"can_change_info,omitempty"`
// can delete messages
CanDeleteMessages *bool `json:"can_delete_messages,omitempty"`
// can edit messages
CanEditMessages *bool `json:"can_edit_messages,omitempty"`
// can invite users
CanInviteUsers *bool `json:"can_invite_users,omitempty"`
// can pin messages
CanPinMessages *bool `json:"can_pin_messages,omitempty"`
// can post messages
CanPostMessages *bool `json:"can_post_messages,omitempty"`
// can promote members
CanPromoteMembers *bool `json:"can_promote_members,omitempty"`
// can restrict members
CanRestrictMembers *bool `json:"can_restrict_members,omitempty"`
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// user id
// Required: true
UserID *int64 `json:"user_id"`
}
PromoteChatMemberBody promote chat member body swagger:model PromoteChatMemberBody
func (*PromoteChatMemberBody) MarshalBinary ¶
func (m *PromoteChatMemberBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PromoteChatMemberBody) UnmarshalBinary ¶
func (m *PromoteChatMemberBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReplyKeyboardMarkup ¶
type ReplyKeyboardMarkup struct {
// keyboard
Keyboard []*KeyboardButton `json:"keyboard"`
// one time keyboard
OneTimeKeyboard bool `json:"one_time_keyboard,omitempty"`
// resize keyboard
ResizeKeyboard bool `json:"resize_keyboard,omitempty"`
// selective
Selective bool `json:"selective,omitempty"`
}
ReplyKeyboardMarkup reply keyboard markup swagger:model ReplyKeyboardMarkup
func (*ReplyKeyboardMarkup) MarshalBinary ¶
func (m *ReplyKeyboardMarkup) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReplyKeyboardMarkup) UnmarshalBinary ¶
func (m *ReplyKeyboardMarkup) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReplyKeyboardRemove ¶
type ReplyKeyboardRemove struct {
// remove keyboard
RemoveKeyboard bool `json:"remove_keyboard,omitempty"`
// selective
Selective bool `json:"selective,omitempty"`
}
ReplyKeyboardRemove reply keyboard remove swagger:model ReplyKeyboardRemove
func (*ReplyKeyboardRemove) MarshalBinary ¶
func (m *ReplyKeyboardRemove) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReplyKeyboardRemove) UnmarshalBinary ¶
func (m *ReplyKeyboardRemove) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ResponseBool ¶
type ResponseBool struct {
// description
Description string `json:"description,omitempty"`
// error code
ErrorCode int64 `json:"error_code,omitempty"`
// ok
Ok bool `json:"ok,omitempty"`
// result
Result bool `json:"result,omitempty"`
}
ResponseBool response bool swagger:model ResponseBool
func (*ResponseBool) MarshalBinary ¶
func (m *ResponseBool) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResponseBool) UnmarshalBinary ¶
func (m *ResponseBool) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ResponseMessage ¶
type ResponseMessage struct {
// description
Description string `json:"description,omitempty"`
// error code
ErrorCode int64 `json:"error_code,omitempty"`
// ok
Ok bool `json:"ok,omitempty"`
// result
Result *Message `json:"result,omitempty"`
}
ResponseMessage response message swagger:model ResponseMessage
func (*ResponseMessage) MarshalBinary ¶
func (m *ResponseMessage) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResponseMessage) UnmarshalBinary ¶
func (m *ResponseMessage) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ResponseParameters ¶
type ResponseParameters struct {
// migrate to chat id
MigrateToChatID int64 `json:"migrate_to_chat_id,omitempty"`
// retry after
RetryAfter int64 `json:"retry_after,omitempty"`
}
ResponseParameters response parameters swagger:model ResponseParameters
func (*ResponseParameters) MarshalBinary ¶
func (m *ResponseParameters) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResponseParameters) UnmarshalBinary ¶
func (m *ResponseParameters) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ResponseUpdate ¶
type ResponseUpdate struct {
// description
Description string `json:"description,omitempty"`
// error code
ErrorCode int64 `json:"error_code,omitempty"`
// ok
Ok bool `json:"ok,omitempty"`
// result
Result []*Update `json:"result"`
}
ResponseUpdate response update swagger:model ResponseUpdate
func (*ResponseUpdate) MarshalBinary ¶
func (m *ResponseUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResponseUpdate) UnmarshalBinary ¶
func (m *ResponseUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestrictChatMemberBody ¶
type RestrictChatMemberBody struct {
// can add web page previews
CanAddWebPagePreviews bool `json:"can_add_web_page_previews,omitempty"`
// can send media messages
CanSendMediaMessages bool `json:"can_send_media_messages,omitempty"`
// can send messages
CanSendMessages bool `json:"can_send_messages,omitempty"`
// can send other messages
CanSendOtherMessages bool `json:"can_send_other_messages,omitempty"`
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// until date
UntilDate int64 `json:"until_date,omitempty"`
// user id
// Required: true
UserID *int64 `json:"user_id"`
}
RestrictChatMemberBody restrict chat member body swagger:model RestrictChatMemberBody
func (*RestrictChatMemberBody) MarshalBinary ¶
func (m *RestrictChatMemberBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestrictChatMemberBody) UnmarshalBinary ¶
func (m *RestrictChatMemberBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendAudioLinkBody ¶
type SendAudioLinkBody struct {
// audio
// Required: true
Audio *string `json:"audio"`
// caption
Caption string `json:"caption,omitempty"`
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// duration
Duration int64 `json:"duration,omitempty"`
// performer
Performer string `json:"performer,omitempty"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
// title
Title string `json:"title,omitempty"`
}
SendAudioLinkBody send audio link body swagger:model SendAudioLinkBody
func (*SendAudioLinkBody) MarshalBinary ¶
func (m *SendAudioLinkBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendAudioLinkBody) UnmarshalBinary ¶
func (m *SendAudioLinkBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendContactBody ¶
type SendContactBody struct {
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// first name
// Required: true
FirstName *string `json:"first_name"`
// last name
LastName string `json:"last_name,omitempty"`
// phone number
// Required: true
PhoneNumber *string `json:"phone_number"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
}
SendContactBody send contact body swagger:model SendContactBody
func (*SendContactBody) MarshalBinary ¶
func (m *SendContactBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendContactBody) UnmarshalBinary ¶
func (m *SendContactBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendDocumentLinkBody ¶
type SendDocumentLinkBody struct {
// caption
Caption string `json:"caption,omitempty"`
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// document
// Required: true
Document *string `json:"document"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
}
SendDocumentLinkBody send document link body swagger:model SendDocumentLinkBody
func (*SendDocumentLinkBody) MarshalBinary ¶
func (m *SendDocumentLinkBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendDocumentLinkBody) UnmarshalBinary ¶
func (m *SendDocumentLinkBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendGameBody ¶
type SendGameBody struct {
// chat id
// Required: true
ChatID *int64 `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// game short name
// Required: true
GameShortName *string `json:"game_short_name"`
// reply markup
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
}
SendGameBody send game body swagger:model SendGameBody
func (*SendGameBody) MarshalBinary ¶
func (m *SendGameBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendGameBody) UnmarshalBinary ¶
func (m *SendGameBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendInvoiceBody ¶
type SendInvoiceBody struct {
// chat id
// Required: true
ChatID *int64 `json:"chat_id"`
// currency
// Required: true
Currency *string `json:"currency"`
// description
// Required: true
Description *string `json:"description"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// is flexible
IsFlexible bool `json:"is_flexible,omitempty"`
// need email
NeedEmail bool `json:"need_email,omitempty"`
// need name
NeedName bool `json:"need_name,omitempty"`
// need phone number
NeedPhoneNumber bool `json:"need_phone_number,omitempty"`
// need shipping address
NeedShippingAddress bool `json:"need_shipping_address,omitempty"`
// payload
// Required: true
Payload *string `json:"payload"`
// photo height
PhotoHeight int64 `json:"photo_height,omitempty"`
// photo size
PhotoSize int64 `json:"photo_size,omitempty"`
// photo url
PhotoURL string `json:"photo_url,omitempty"`
// photo width
PhotoWidth int64 `json:"photo_width,omitempty"`
// prices
// Required: true
Prices []*LabeledPrice `json:"prices"`
// provider token
// Required: true
ProviderToken *string `json:"provider_token"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
// start parameter
// Required: true
StartParameter *string `json:"start_parameter"`
// title
// Required: true
Title *string `json:"title"`
}
SendInvoiceBody send invoice body swagger:model SendInvoiceBody
func (*SendInvoiceBody) MarshalBinary ¶
func (m *SendInvoiceBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendInvoiceBody) UnmarshalBinary ¶
func (m *SendInvoiceBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendLocationBody ¶
type SendLocationBody struct {
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// latitude
// Required: true
Latitude *float64 `json:"latitude"`
// longitude
// Required: true
Longitude *float64 `json:"longitude"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
}
SendLocationBody send location body swagger:model SendLocationBody
func (*SendLocationBody) MarshalBinary ¶
func (m *SendLocationBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendLocationBody) UnmarshalBinary ¶
func (m *SendLocationBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendMessageBody ¶
type SendMessageBody struct {
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// disable web page preview
DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
// parse mode
ParseMode ParseMode `json:"parse_mode,omitempty"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
// text
// Required: true
Text *string `json:"text"`
}
SendMessageBody send message body swagger:model SendMessageBody
func (*SendMessageBody) MarshalBinary ¶
func (m *SendMessageBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendMessageBody) UnmarshalBinary ¶
func (m *SendMessageBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendPhotoLinkBody ¶
type SendPhotoLinkBody struct {
// caption
Caption string `json:"caption,omitempty"`
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// photo
// Required: true
Photo *string `json:"photo"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
}
SendPhotoLinkBody send photo link body swagger:model SendPhotoLinkBody
func (*SendPhotoLinkBody) MarshalBinary ¶
func (m *SendPhotoLinkBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendPhotoLinkBody) UnmarshalBinary ¶
func (m *SendPhotoLinkBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendStickerLinkBody ¶
type SendStickerLinkBody struct {
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
// sticker
// Required: true
Sticker *string `json:"sticker"`
}
SendStickerLinkBody send sticker link body swagger:model SendStickerLinkBody
func (*SendStickerLinkBody) MarshalBinary ¶
func (m *SendStickerLinkBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendStickerLinkBody) UnmarshalBinary ¶
func (m *SendStickerLinkBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendVenueBody ¶
type SendVenueBody struct {
// address
// Required: true
Address *string `json:"address"`
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// foursquare id
FoursquareID string `json:"foursquare_id,omitempty"`
// latitude
// Required: true
Latitude *float64 `json:"latitude"`
// longitude
// Required: true
Longitude *float64 `json:"longitude"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
// title
// Required: true
Title *string `json:"title"`
}
SendVenueBody send venue body swagger:model SendVenueBody
func (*SendVenueBody) MarshalBinary ¶
func (m *SendVenueBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendVenueBody) UnmarshalBinary ¶
func (m *SendVenueBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendVideoLinkBody ¶
type SendVideoLinkBody struct {
// caption
Caption string `json:"caption,omitempty"`
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// duration
Duration int64 `json:"duration,omitempty"`
// height
Height int64 `json:"height,omitempty"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
// video
// Required: true
Video *string `json:"video"`
// width
Width int64 `json:"width,omitempty"`
}
SendVideoLinkBody send video link body swagger:model SendVideoLinkBody
func (*SendVideoLinkBody) MarshalBinary ¶
func (m *SendVideoLinkBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendVideoLinkBody) UnmarshalBinary ¶
func (m *SendVideoLinkBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendVideoNoteLinkBody ¶
type SendVideoNoteLinkBody struct {
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// duration
Duration int64 `json:"duration,omitempty"`
// length
Length int64 `json:"length,omitempty"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
// video note
// Required: true
VideoNote *string `json:"video_note"`
}
SendVideoNoteLinkBody send video note link body swagger:model SendVideoNoteLinkBody
func (*SendVideoNoteLinkBody) MarshalBinary ¶
func (m *SendVideoNoteLinkBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendVideoNoteLinkBody) UnmarshalBinary ¶
func (m *SendVideoNoteLinkBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendVoiceLinkBody ¶
type SendVoiceLinkBody struct {
// caption
Caption string `json:"caption,omitempty"`
// chat id
// Required: true
ChatID interface{} `json:"chat_id"`
// disable notification
DisableNotification bool `json:"disable_notification,omitempty"`
// duration
Duration int64 `json:"duration,omitempty"`
// reply markup
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
// reply to message id
ReplyToMessageID int64 `json:"reply_to_message_id,omitempty"`
// voice
// Required: true
Voice *string `json:"voice"`
}
SendVoiceLinkBody send voice link body swagger:model SendVoiceLinkBody
func (*SendVoiceLinkBody) MarshalBinary ¶
func (m *SendVoiceLinkBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendVoiceLinkBody) UnmarshalBinary ¶
func (m *SendVoiceLinkBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ShippingAddress ¶
type ShippingAddress struct {
// city
City string `json:"city,omitempty"`
// country code
CountryCode string `json:"country_code,omitempty"`
// post code
PostCode string `json:"post_code,omitempty"`
// stat
Stat string `json:"stat,omitempty"`
// street line1
StreetLine1 string `json:"street_line1,omitempty"`
// street line2
StreetLine2 string `json:"street_line2,omitempty"`
}
ShippingAddress shipping address swagger:model ShippingAddress
func (*ShippingAddress) MarshalBinary ¶
func (m *ShippingAddress) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ShippingAddress) UnmarshalBinary ¶
func (m *ShippingAddress) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ShippingOption ¶
type ShippingOption struct {
// id
ID string `json:"id,omitempty"`
// prices
Prices []*LabeledPrice `json:"prices"`
// title
Title string `json:"title,omitempty"`
}
ShippingOption shipping option swagger:model ShippingOption
func (*ShippingOption) MarshalBinary ¶
func (m *ShippingOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ShippingOption) UnmarshalBinary ¶
func (m *ShippingOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ShippingQuery ¶
type ShippingQuery struct {
// from
From *User `json:"from,omitempty"`
// id
ID string `json:"id,omitempty"`
// invoice payload
InvoicePayload string `json:"invoice_payload,omitempty"`
// shipping address
ShippingAddress *ShippingAddress `json:"shipping_address,omitempty"`
}
ShippingQuery shipping query swagger:model ShippingQuery
func (*ShippingQuery) MarshalBinary ¶
func (m *ShippingQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ShippingQuery) UnmarshalBinary ¶
func (m *ShippingQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Sticker ¶
type Sticker struct {
// emoji
Emoji string `json:"emoji,omitempty"`
// file id
FileID string `json:"file_id,omitempty"`
// file size
FileSize int64 `json:"file_size,omitempty"`
// height
Height int64 `json:"height,omitempty"`
// mask position
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
// set name
SetName string `json:"set_name,omitempty"`
// thumb
Thumb *PhotoSize `json:"thumb,omitempty"`
// width
Width int64 `json:"width,omitempty"`
}
Sticker sticker swagger:model Sticker
func (*Sticker) MarshalBinary ¶
MarshalBinary interface implementation
func (*Sticker) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type StickerSet ¶
type StickerSet struct {
// is masks
IsMasks bool `json:"is_masks,omitempty"`
// name
Name string `json:"name,omitempty"`
// stickers
Stickers []*Sticker `json:"stickers"`
// title
Title string `json:"title,omitempty"`
}
StickerSet sticker set swagger:model StickerSet
func (*StickerSet) MarshalBinary ¶
func (m *StickerSet) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StickerSet) UnmarshalBinary ¶
func (m *StickerSet) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SuccessfulPayment ¶
type SuccessfulPayment struct {
// currency
Currency string `json:"currency,omitempty"`
// invoice payload
InvoicePayload string `json:"invoice_payload,omitempty"`
// order info
OrderInfo *OrderInfo `json:"order_info,omitempty"`
// provider payment charge id
ProviderPaymentChargeID string `json:"provider_payment_charge_id,omitempty"`
// shipping option id
ShippingOptionID string `json:"shipping_option_id,omitempty"`
// telegram payment charge id
TelegramPaymentChargeID string `json:"telegram_payment_charge_id,omitempty"`
// total amount
TotalAmount int64 `json:"total_amount,omitempty"`
}
SuccessfulPayment successful payment swagger:model SuccessfulPayment
func (*SuccessfulPayment) MarshalBinary ¶
func (m *SuccessfulPayment) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SuccessfulPayment) UnmarshalBinary ¶
func (m *SuccessfulPayment) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Update ¶
type Update struct {
// callback query
CallbackQuery *CallbackQuery `json:"callback_query,omitempty"`
// channel post
ChannelPost *Message `json:"channel_post,omitempty"`
// chosen inline result
ChosenInlineResult *ChosenInlineResult `json:"chosen_inline_result,omitempty"`
// edited channel post
EditedChannelPost *Message `json:"edited_channel_post,omitempty"`
// edited message
EditedMessage *Message `json:"edited_message,omitempty"`
// inline query
InlineQuery *InlineQuery `json:"inline_query,omitempty"`
// message
Message *Message `json:"message,omitempty"`
// pre checkout query
PreCheckoutQuery *PreCheckoutQuery `json:"pre_checkout_query,omitempty"`
// shipping query
ShippingQuery *ShippingQuery `json:"shipping_query,omitempty"`
// update id
UpdateID int64 `json:"update_id,omitempty"`
}
Update update swagger:model Update
func (*Update) MarshalBinary ¶
MarshalBinary interface implementation
func (*Update) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type User ¶
type User struct {
// first name
FirstName string `json:"first_name,omitempty"`
// id
ID int64 `json:"id,omitempty"`
// is bot
IsBot bool `json:"is_bot,omitempty"`
// language code
LanguageCode string `json:"language_code,omitempty"`
// last name
LastName string `json:"last_name,omitempty"`
// username
Username string `json:"username,omitempty"`
}
User user swagger:model User
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserProfilePhotos ¶
type UserProfilePhotos struct {
// photos
Photos [][]*PhotoSize `json:"photos"`
// total count
TotalCount int64 `json:"total_count,omitempty"`
}
UserProfilePhotos user profile photos swagger:model UserProfilePhotos
func (*UserProfilePhotos) MarshalBinary ¶
func (m *UserProfilePhotos) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserProfilePhotos) UnmarshalBinary ¶
func (m *UserProfilePhotos) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Venue ¶
type Venue struct {
// address
Address string `json:"address,omitempty"`
// foursquare id
FoursquareID string `json:"foursquare_id,omitempty"`
// location
Location *Location `json:"location,omitempty"`
// title
Title string `json:"title,omitempty"`
}
Venue venue swagger:model Venue
func (*Venue) MarshalBinary ¶
MarshalBinary interface implementation
func (*Venue) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Video ¶
type Video struct {
// duration
Duration int64 `json:"duration,omitempty"`
// file id
FileID string `json:"file_id,omitempty"`
// file size
FileSize int64 `json:"file_size,omitempty"`
// height
Height int64 `json:"height,omitempty"`
// mime type
MimeType string `json:"mime_type,omitempty"`
// thumb
Thumb *PhotoSize `json:"thumb,omitempty"`
// width
Width int64 `json:"width,omitempty"`
}
Video video swagger:model Video
func (*Video) MarshalBinary ¶
MarshalBinary interface implementation
func (*Video) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type VideoNote ¶
type VideoNote struct {
// duration
Duration int64 `json:"duration,omitempty"`
// file id
FileID string `json:"file_id,omitempty"`
// file size
FileSize int64 `json:"file_size,omitempty"`
// length
Length int64 `json:"length,omitempty"`
// thumb
Thumb *PhotoSize `json:"thumb,omitempty"`
}
VideoNote video note swagger:model VideoNote
func (*VideoNote) MarshalBinary ¶
MarshalBinary interface implementation
func (*VideoNote) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Voice ¶
type Voice struct {
// duration
Duration int64 `json:"duration,omitempty"`
// file id
FileID string `json:"file_id,omitempty"`
// file size
FileSize int64 `json:"file_size,omitempty"`
// mime type
MimeType string `json:"mime_type,omitempty"`
}
Voice voice swagger:model Voice
func (*Voice) MarshalBinary ¶
MarshalBinary interface implementation
func (*Voice) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type WebhookInfo ¶
type WebhookInfo struct {
// allowed updates
AllowedUpdates []AllowedUpdate `json:"allowed_updates"`
// has custom certificate
// Required: true
HasCustomCertificate *bool `json:"has_custom_certificate"`
// last error date
LastErrorDate int64 `json:"last_error_date,omitempty"`
// last error message
LastErrorMessage string `json:"last_error_message,omitempty"`
// max connections
MaxConnections int64 `json:"max_connections,omitempty"`
// pending update count
// Required: true
PendingUpdateCount *int64 `json:"pending_update_count"`
// url
// Required: true
URL *string `json:"url"`
}
WebhookInfo webhook info swagger:model WebhookInfo
func (*WebhookInfo) MarshalBinary ¶
func (m *WebhookInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WebhookInfo) UnmarshalBinary ¶
func (m *WebhookInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- add_sticker_to_set_link_body.go
- allowed_update.go
- animation.go
- answer_inline_query_body.go
- answer_shipping_query_body.go
- audio.go
- callback_game.go
- callback_query.go
- chat.go
- chat_member.go
- chat_photo.go
- chosen_inline_result.go
- contact.go
- create_new_sticker_set_link_body.go
- document.go
- edit_message_caption_body.go
- edit_message_reply_markup_body.go
- edit_message_text_body.go
- error.go
- file.go
- force_reply.go
- game.go
- game_high_score.go
- inline_keyboard_button.go
- inline_keyboard_markup.go
- inline_query.go
- inline_query_result_article.go
- inline_query_result_audio.go
- inline_query_result_cached_audio.go
- inline_query_result_cached_document.go
- inline_query_result_cached_gif.go
- inline_query_result_cached_mpeg4_gif.go
- inline_query_result_cached_photo.go
- inline_query_result_cached_sticker.go
- inline_query_result_cached_video.go
- inline_query_result_cached_voice.go
- inline_query_result_contact.go
- inline_query_result_document.go
- inline_query_result_game.go
- inline_query_result_gif.go
- inline_query_result_location.go
- inline_query_result_mpeg4_gif.go
- inline_query_result_photo.go
- inline_query_result_venue.go
- inline_query_result_video.go
- inline_query_result_voice.go
- inline_type.go
- input_contact_message_content.go
- input_location_message_content.go
- input_text_message_content.go
- input_venue_message_content.go
- invoice.go
- keyboard_button.go
- labeled_price.go
- location.go
- mask_position.go
- message.go
- message_entity.go
- order_info.go
- parse_mode.go
- photo_size.go
- pre_checkout_query.go
- promote_chat_member_body.go
- reply_keyboard_markup.go
- reply_keyboard_remove.go
- response_bool.go
- response_message.go
- response_parameters.go
- response_update.go
- restrict_chat_member_body.go
- send_audio_link_body.go
- send_contact_body.go
- send_document_link_body.go
- send_game_body.go
- send_invoice_body.go
- send_location_body.go
- send_message_body.go
- send_photo_link_body.go
- send_sticker_link_body.go
- send_venue_body.go
- send_video_link_body.go
- send_video_note_link_body.go
- send_voice_link_body.go
- shipping_address.go
- shipping_option.go
- shipping_query.go
- sticker.go
- sticker_set.go
- successful_payment.go
- update.go
- user.go
- user_profile_photos.go
- venue.go
- video.go
- video_note.go
- voice.go
- webhook_info.go