|
|
@ -281,15 +281,10 @@ type InlineQuery struct { |
|
|
|
Offset string `json:"offset"` |
|
|
|
Offset string `json:"offset"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// InlineQueryResult is the base type that all InlineQuery Results have.
|
|
|
|
|
|
|
|
type InlineQueryResult struct { |
|
|
|
|
|
|
|
Type string `json:"type"` // required
|
|
|
|
|
|
|
|
ID string `json:"id"` // required
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// InlineQueryResultArticle is an inline query response article.
|
|
|
|
// InlineQueryResultArticle is an inline query response article.
|
|
|
|
type InlineQueryResultArticle struct { |
|
|
|
type InlineQueryResultArticle struct { |
|
|
|
InlineQueryResult |
|
|
|
Type string `json:"type"` // required
|
|
|
|
|
|
|
|
ID string `json:"id"` // required
|
|
|
|
Title string `json:"title"` // required
|
|
|
|
Title string `json:"title"` // required
|
|
|
|
MessageText string `json:"message_text"` // required
|
|
|
|
MessageText string `json:"message_text"` // required
|
|
|
|
ParseMode string `json:"parse_mode"` |
|
|
|
ParseMode string `json:"parse_mode"` |
|
|
@ -304,7 +299,8 @@ type InlineQueryResultArticle struct { |
|
|
|
|
|
|
|
|
|
|
|
// InlineQueryResultPhoto is an inline query response photo.
|
|
|
|
// InlineQueryResultPhoto is an inline query response photo.
|
|
|
|
type InlineQueryResultPhoto struct { |
|
|
|
type InlineQueryResultPhoto struct { |
|
|
|
InlineQueryResult |
|
|
|
Type string `json:"type"` // required
|
|
|
|
|
|
|
|
ID string `json:"id"` // required
|
|
|
|
URL string `json:"photo_url"` // required
|
|
|
|
URL string `json:"photo_url"` // required
|
|
|
|
MimeType string `json:"mime_type"` |
|
|
|
MimeType string `json:"mime_type"` |
|
|
|
Width int `json:"photo_width"` |
|
|
|
Width int `json:"photo_width"` |
|
|
@ -320,7 +316,8 @@ type InlineQueryResultPhoto struct { |
|
|
|
|
|
|
|
|
|
|
|
// InlineQueryResultGIF is an inline query response GIF.
|
|
|
|
// InlineQueryResultGIF is an inline query response GIF.
|
|
|
|
type InlineQueryResultGIF struct { |
|
|
|
type InlineQueryResultGIF struct { |
|
|
|
InlineQueryResult |
|
|
|
Type string `json:"type"` // required
|
|
|
|
|
|
|
|
ID string `json:"id"` // required
|
|
|
|
URL string `json:"gif_url"` // required
|
|
|
|
URL string `json:"gif_url"` // required
|
|
|
|
Width int `json:"gif_width"` |
|
|
|
Width int `json:"gif_width"` |
|
|
|
Height int `json:"gif_height"` |
|
|
|
Height int `json:"gif_height"` |
|
|
@ -334,7 +331,8 @@ type InlineQueryResultGIF struct { |
|
|
|
|
|
|
|
|
|
|
|
// InlineQueryResultMPEG4GIF is an inline query response MPEG4 GIF.
|
|
|
|
// InlineQueryResultMPEG4GIF is an inline query response MPEG4 GIF.
|
|
|
|
type InlineQueryResultMPEG4GIF struct { |
|
|
|
type InlineQueryResultMPEG4GIF struct { |
|
|
|
InlineQueryResult |
|
|
|
Type string `json:"type"` // required
|
|
|
|
|
|
|
|
ID string `json:"id"` // required
|
|
|
|
URL string `json:"mpeg4_url"` // required
|
|
|
|
URL string `json:"mpeg4_url"` // required
|
|
|
|
Width int `json:"mpeg4_width"` |
|
|
|
Width int `json:"mpeg4_width"` |
|
|
|
Height int `json:"mpeg4_height"` |
|
|
|
Height int `json:"mpeg4_height"` |
|
|
@ -348,7 +346,8 @@ type InlineQueryResultMPEG4GIF struct { |
|
|
|
|
|
|
|
|
|
|
|
// InlineQueryResultVideo is an inline query response video.
|
|
|
|
// InlineQueryResultVideo is an inline query response video.
|
|
|
|
type InlineQueryResultVideo struct { |
|
|
|
type InlineQueryResultVideo struct { |
|
|
|
InlineQueryResult |
|
|
|
Type string `json:"type"` // required
|
|
|
|
|
|
|
|
ID string `json:"id"` // required
|
|
|
|
URL string `json:"video_url"` // required
|
|
|
|
URL string `json:"video_url"` // required
|
|
|
|
MimeType string `json:"mime_type"` // required
|
|
|
|
MimeType string `json:"mime_type"` // required
|
|
|
|
MessageText string `json:"message_text"` // required
|
|
|
|
MessageText string `json:"message_text"` // required
|
|
|
|