models

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 6 Imported by: 11

Documentation

Index

Constants

View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
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

func (*AddStickerToSetLinkBody) Validate

func (m *AddStickerToSetLinkBody) Validate(formats strfmt.Registry) error

Validate validates this add sticker to set link body

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"
)

func (AllowedUpdate) Validate

func (m AllowedUpdate) Validate(formats strfmt.Registry) error

Validate validates this allowed update

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

func (m *Animation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Animation) UnmarshalBinary

func (m *Animation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Animation) Validate

func (m *Animation) Validate(formats strfmt.Registry) error

Validate validates this animation

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

func (*AnswerInlineQueryBody) Validate

func (m *AnswerInlineQueryBody) Validate(formats strfmt.Registry) error

Validate validates this answer inline query body

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

func (*AnswerShippingQueryBody) Validate

func (m *AnswerShippingQueryBody) Validate(formats strfmt.Registry) error

Validate validates this answer shipping query body

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

func (m *Audio) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Audio) UnmarshalBinary

func (m *Audio) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Audio) Validate

func (m *Audio) Validate(formats strfmt.Registry) error

Validate validates this audio

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

func (*CallbackQuery) Validate

func (m *CallbackQuery) Validate(formats strfmt.Registry) error

Validate validates this callback query

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

func (m *Chat) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Chat) UnmarshalBinary

func (m *Chat) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Chat) Validate

func (m *Chat) Validate(formats strfmt.Registry) error

Validate validates this chat

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

func (*ChatMember) Validate

func (m *ChatMember) Validate(formats strfmt.Registry) error

Validate validates this chat member

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

func (m *ChatPhoto) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChatPhoto) UnmarshalBinary

func (m *ChatPhoto) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChatPhoto) Validate

func (m *ChatPhoto) Validate(formats strfmt.Registry) error

Validate validates this chat photo

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

func (*ChosenInlineResult) Validate

func (m *ChosenInlineResult) Validate(formats strfmt.Registry) error

Validate validates this chosen inline result

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

func (m *Contact) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Contact) UnmarshalBinary

func (m *Contact) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Contact) Validate

func (m *Contact) Validate(formats strfmt.Registry) error

Validate validates this contact

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

func (*CreateNewStickerSetLinkBody) Validate

func (m *CreateNewStickerSetLinkBody) Validate(formats strfmt.Registry) error

Validate validates this create new sticker set link body

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

func (m *Document) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Document) UnmarshalBinary

func (m *Document) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Document) Validate

func (m *Document) Validate(formats strfmt.Registry) error

Validate validates this document

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

func (*EditMessageCaptionBody) Validate

func (m *EditMessageCaptionBody) Validate(formats strfmt.Registry) error

Validate validates this edit message caption body

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

func (*EditMessageReplyMarkupBody) Validate

func (m *EditMessageReplyMarkupBody) Validate(formats strfmt.Registry) error

Validate validates this edit message reply markup body

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

func (*EditMessageTextBody) Validate

func (m *EditMessageTextBody) Validate(formats strfmt.Registry) error

Validate validates this edit message text body

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

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

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

func (m *File) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*File) UnmarshalBinary

func (m *File) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*File) Validate

func (m *File) Validate(formats strfmt.Registry) error

Validate validates this file

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

func (*ForceReply) Validate

func (m *ForceReply) Validate(formats strfmt.Registry) error

Validate validates this force reply

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

func (m *Game) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Game) UnmarshalBinary

func (m *Game) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Game) Validate

func (m *Game) Validate(formats strfmt.Registry) error

Validate validates this game

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

func (*GameHighScore) Validate

func (m *GameHighScore) Validate(formats strfmt.Registry) error

Validate validates this game high score

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

func (*InlineKeyboardButton) Validate

func (m *InlineKeyboardButton) Validate(formats strfmt.Registry) error

Validate validates this inline keyboard button

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

func (*InlineKeyboardMarkup) Validate

func (m *InlineKeyboardMarkup) Validate(formats strfmt.Registry) error

Validate validates this inline keyboard markup

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

func (*InlineQuery) Validate

func (m *InlineQuery) Validate(formats strfmt.Registry) error

Validate validates this inline query

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

func (*InlineQueryResultArticle) Validate

func (m *InlineQueryResultArticle) Validate(formats strfmt.Registry) error

Validate validates this inline query result article

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

func (*InlineQueryResultAudio) Validate

func (m *InlineQueryResultAudio) Validate(formats strfmt.Registry) error

Validate validates this inline query result audio

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

func (*InlineQueryResultCachedAudio) Validate

func (m *InlineQueryResultCachedAudio) Validate(formats strfmt.Registry) error

Validate validates this inline query result cached audio

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

func (*InlineQueryResultCachedDocument) Validate

Validate validates this inline query result cached document

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

func (*InlineQueryResultCachedGif) Validate

func (m *InlineQueryResultCachedGif) Validate(formats strfmt.Registry) error

Validate validates this inline query result cached gif

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

func (*InlineQueryResultCachedMpeg4Gif) Validate

Validate validates this inline query result cached mpeg4 gif

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

func (*InlineQueryResultCachedPhoto) Validate

func (m *InlineQueryResultCachedPhoto) Validate(formats strfmt.Registry) error

Validate validates this inline query result cached photo

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

func (*InlineQueryResultCachedSticker) Validate

func (m *InlineQueryResultCachedSticker) Validate(formats strfmt.Registry) error

Validate validates this inline query result cached sticker

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

func (*InlineQueryResultCachedVideo) Validate

func (m *InlineQueryResultCachedVideo) Validate(formats strfmt.Registry) error

Validate validates this inline query result cached video

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

func (*InlineQueryResultCachedVoice) Validate

func (m *InlineQueryResultCachedVoice) Validate(formats strfmt.Registry) error

Validate validates this inline query result cached voice

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

func (*InlineQueryResultContact) Validate

func (m *InlineQueryResultContact) Validate(formats strfmt.Registry) error

Validate validates this inline query result contact

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

func (*InlineQueryResultDocument) Validate

func (m *InlineQueryResultDocument) Validate(formats strfmt.Registry) error

Validate validates this inline query result document

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

func (*InlineQueryResultGame) Validate

func (m *InlineQueryResultGame) Validate(formats strfmt.Registry) error

Validate validates this inline query result game

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

func (*InlineQueryResultGif) Validate

func (m *InlineQueryResultGif) Validate(formats strfmt.Registry) error

Validate validates this inline query result gif

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

func (*InlineQueryResultLocation) Validate

func (m *InlineQueryResultLocation) Validate(formats strfmt.Registry) error

Validate validates this inline query result location

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

func (*InlineQueryResultMpeg4Gif) Validate

func (m *InlineQueryResultMpeg4Gif) Validate(formats strfmt.Registry) error

Validate validates this inline query result mpeg4 gif

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

func (*InlineQueryResultPhoto) Validate

func (m *InlineQueryResultPhoto) Validate(formats strfmt.Registry) error

Validate validates this inline query result photo

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

func (*InlineQueryResultVenue) Validate

func (m *InlineQueryResultVenue) Validate(formats strfmt.Registry) error

Validate validates this inline query result venue

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

func (*InlineQueryResultVideo) Validate

func (m *InlineQueryResultVideo) Validate(formats strfmt.Registry) error

Validate validates this inline query result video

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

func (*InlineQueryResultVoice) Validate

func (m *InlineQueryResultVoice) Validate(formats strfmt.Registry) error

Validate validates this inline query result voice

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"
)

func (InlineType) Validate

func (m InlineType) Validate(formats strfmt.Registry) error

Validate validates this inline type

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

func (*InputContactMessageContent) Validate

func (m *InputContactMessageContent) Validate(formats strfmt.Registry) error

Validate validates this input contact message content

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

func (*InputLocationMessageContent) Validate

func (m *InputLocationMessageContent) Validate(formats strfmt.Registry) error

Validate validates this input location message content

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

func (*InputTextMessageContent) Validate

func (m *InputTextMessageContent) Validate(formats strfmt.Registry) error

Validate validates this input text message content

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

func (*InputVenueMessageContent) Validate

func (m *InputVenueMessageContent) Validate(formats strfmt.Registry) error

Validate validates this input venue message content

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

func (m *Invoice) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Invoice) UnmarshalBinary

func (m *Invoice) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Invoice) Validate

func (m *Invoice) Validate(formats strfmt.Registry) error

Validate validates this invoice

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

func (*KeyboardButton) Validate

func (m *KeyboardButton) Validate(formats strfmt.Registry) error

Validate validates this keyboard button

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

func (*LabeledPrice) Validate

func (m *LabeledPrice) Validate(formats strfmt.Registry) error

Validate validates this labeled price

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

func (m *Location) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Location) UnmarshalBinary

func (m *Location) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Location) Validate

func (m *Location) Validate(formats strfmt.Registry) error

Validate validates this location

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

func (*MaskPosition) Validate

func (m *MaskPosition) Validate(formats strfmt.Registry) error

Validate validates this mask position

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

func (m *Message) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Message) UnmarshalBinary

func (m *Message) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Message) Validate

func (m *Message) Validate(formats strfmt.Registry) error

Validate validates this message

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

func (*MessageEntity) Validate

func (m *MessageEntity) Validate(formats strfmt.Registry) error

Validate validates this message entity

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

func (m *OrderInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderInfo) UnmarshalBinary

func (m *OrderInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderInfo) Validate

func (m *OrderInfo) Validate(formats strfmt.Registry) error

Validate validates this order info

type ParseMode

type ParseMode string

ParseMode parse mode swagger:model ParseMode

const (
	// ParseModeMarkdown captures enum value "Markdown"
	ParseModeMarkdown ParseMode = "Markdown"
	// ParseModeHTML captures enum value "Html"
	ParseModeHTML ParseMode = "Html"
)

func (ParseMode) Validate

func (m ParseMode) Validate(formats strfmt.Registry) error

Validate validates this parse mode

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

func (m *PhotoSize) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PhotoSize) UnmarshalBinary

func (m *PhotoSize) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PhotoSize) Validate

func (m *PhotoSize) Validate(formats strfmt.Registry) error

Validate validates this photo size

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

func (*PreCheckoutQuery) Validate

func (m *PreCheckoutQuery) Validate(formats strfmt.Registry) error

Validate validates this pre checkout query

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

func (*PromoteChatMemberBody) Validate

func (m *PromoteChatMemberBody) Validate(formats strfmt.Registry) error

Validate validates this promote chat member body

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

func (*ReplyKeyboardMarkup) Validate

func (m *ReplyKeyboardMarkup) Validate(formats strfmt.Registry) error

Validate validates this reply keyboard markup

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

func (*ReplyKeyboardRemove) Validate

func (m *ReplyKeyboardRemove) Validate(formats strfmt.Registry) error

Validate validates this reply keyboard remove

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

func (*ResponseBool) Validate

func (m *ResponseBool) Validate(formats strfmt.Registry) error

Validate validates this response bool

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

func (*ResponseMessage) Validate

func (m *ResponseMessage) Validate(formats strfmt.Registry) error

Validate validates this response message

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

func (*ResponseParameters) Validate

func (m *ResponseParameters) Validate(formats strfmt.Registry) error

Validate validates this response parameters

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

func (*ResponseUpdate) Validate

func (m *ResponseUpdate) Validate(formats strfmt.Registry) error

Validate validates this response update

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

func (*RestrictChatMemberBody) Validate

func (m *RestrictChatMemberBody) Validate(formats strfmt.Registry) error

Validate validates this restrict chat member body

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

func (*SendAudioLinkBody) Validate

func (m *SendAudioLinkBody) Validate(formats strfmt.Registry) error

Validate validates this send audio link body

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

func (*SendContactBody) Validate

func (m *SendContactBody) Validate(formats strfmt.Registry) error

Validate validates this send contact body

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

func (*SendDocumentLinkBody) Validate

func (m *SendDocumentLinkBody) Validate(formats strfmt.Registry) error

Validate validates this send document link body

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

func (*SendGameBody) Validate

func (m *SendGameBody) Validate(formats strfmt.Registry) error

Validate validates this send game body

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

func (*SendInvoiceBody) Validate

func (m *SendInvoiceBody) Validate(formats strfmt.Registry) error

Validate validates this send invoice body

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

func (*SendLocationBody) Validate

func (m *SendLocationBody) Validate(formats strfmt.Registry) error

Validate validates this send location body

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

func (*SendMessageBody) Validate

func (m *SendMessageBody) Validate(formats strfmt.Registry) error

Validate validates this send message body

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

func (*SendPhotoLinkBody) Validate

func (m *SendPhotoLinkBody) Validate(formats strfmt.Registry) error

Validate validates this send photo link body

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

func (*SendStickerLinkBody) Validate

func (m *SendStickerLinkBody) Validate(formats strfmt.Registry) error

Validate validates this send sticker link body

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

func (*SendVenueBody) Validate

func (m *SendVenueBody) Validate(formats strfmt.Registry) error

Validate validates this send venue body

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

func (*SendVideoLinkBody) Validate

func (m *SendVideoLinkBody) Validate(formats strfmt.Registry) error

Validate validates this send video link body

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

func (*SendVideoNoteLinkBody) Validate

func (m *SendVideoNoteLinkBody) Validate(formats strfmt.Registry) error

Validate validates this send video note link body

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

func (*SendVoiceLinkBody) Validate

func (m *SendVoiceLinkBody) Validate(formats strfmt.Registry) error

Validate validates this send voice link body

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

func (*ShippingAddress) Validate

func (m *ShippingAddress) Validate(formats strfmt.Registry) error

Validate validates this shipping address

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

func (*ShippingOption) Validate

func (m *ShippingOption) Validate(formats strfmt.Registry) error

Validate validates this shipping option

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

func (*ShippingQuery) Validate

func (m *ShippingQuery) Validate(formats strfmt.Registry) error

Validate validates this shipping query

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

func (m *Sticker) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Sticker) UnmarshalBinary

func (m *Sticker) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Sticker) Validate

func (m *Sticker) Validate(formats strfmt.Registry) error

Validate validates this sticker

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

func (*StickerSet) Validate

func (m *StickerSet) Validate(formats strfmt.Registry) error

Validate validates this sticker set

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

func (*SuccessfulPayment) Validate

func (m *SuccessfulPayment) Validate(formats strfmt.Registry) error

Validate validates this successful payment

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

func (m *Update) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Update) UnmarshalBinary

func (m *Update) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Update) Validate

func (m *Update) Validate(formats strfmt.Registry) error

Validate validates this update

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

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

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

func (*UserProfilePhotos) Validate

func (m *UserProfilePhotos) Validate(formats strfmt.Registry) error

Validate validates this user profile photos

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

func (m *Venue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Venue) UnmarshalBinary

func (m *Venue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Venue) Validate

func (m *Venue) Validate(formats strfmt.Registry) error

Validate validates this venue

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

func (m *Video) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Video) UnmarshalBinary

func (m *Video) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Video) Validate

func (m *Video) Validate(formats strfmt.Registry) error

Validate validates this video

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

func (m *VideoNote) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VideoNote) UnmarshalBinary

func (m *VideoNote) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VideoNote) Validate

func (m *VideoNote) Validate(formats strfmt.Registry) error

Validate validates this video note

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

func (m *Voice) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Voice) UnmarshalBinary

func (m *Voice) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Voice) Validate

func (m *Voice) Validate(formats strfmt.Registry) error

Validate validates this voice

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

func (*WebhookInfo) Validate

func (m *WebhookInfo) Validate(formats strfmt.Registry) error

Validate validates this webhook info

Source Files

Jump to

Keyboard shortcuts

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