Update some types.
parent
595aba3dea
commit
109da1a19f
120
types.go
120
types.go
|
@ -344,85 +344,87 @@ type InlineQuery struct {
|
||||||
|
|
||||||
// InlineQueryResultArticle is an inline query response article.
|
// InlineQueryResultArticle is an inline query response article.
|
||||||
type InlineQueryResultArticle struct {
|
type InlineQueryResultArticle struct {
|
||||||
Type string `json:"type"` // required
|
Type string `json:"type"` // required
|
||||||
ID string `json:"id"` // required
|
ID string `json:"id"` // required
|
||||||
Title string `json:"title"` // required
|
Title string `json:"title"` // required
|
||||||
InputMessageContent interface{} `json:"input_message_content"` // required
|
InputMessageContent interface{} `json:"input_message_content"` // required
|
||||||
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
HideURL bool `json:"hide_url"`
|
HideURL bool `json:"hide_url"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
ThumbURL string `json:"thumb_url"`
|
ThumbURL string `json:"thumb_url"`
|
||||||
ThumbWidth int `json:"thumb_width"`
|
ThumbWidth int `json:"thumb_width"`
|
||||||
ThumbHeight int `json:"thumb_height"`
|
ThumbHeight int `json:"thumb_height"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InlineQueryResultPhoto is an inline query response photo.
|
// InlineQueryResultPhoto is an inline query response photo.
|
||||||
type InlineQueryResultPhoto struct {
|
type InlineQueryResultPhoto struct {
|
||||||
Type string `json:"type"` // required
|
Type string `json:"type"` // required
|
||||||
ID string `json:"id"` // 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"`
|
||||||
Height int `json:"photo_height"`
|
Height int `json:"photo_height"`
|
||||||
ThumbURL string `json:"thumb_url"`
|
ThumbURL string `json:"thumb_url"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Caption string `json:"caption"`
|
Caption string `json:"caption"`
|
||||||
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
|
||||||
InputMessageContent interface{} `json:"input_message_content"`
|
InputMessageContent interface{} `json:"input_message_content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InlineQueryResultGIF is an inline query response GIF.
|
// InlineQueryResultGIF is an inline query response GIF.
|
||||||
type InlineQueryResultGIF struct {
|
type InlineQueryResultGIF struct {
|
||||||
Type string `json:"type"` // required
|
Type string `json:"type"` // required
|
||||||
ID string `json:"id"` // 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"`
|
||||||
ThumbURL string `json:"thumb_url"`
|
ThumbURL string `json:"thumb_url"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Caption string `json:"caption"`
|
Caption string `json:"caption"`
|
||||||
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
|
||||||
InputMessageContent interface{} `json:"input_message_content"`
|
InputMessageContent interface{} `json:"input_message_content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InlineQueryResultMPEG4GIF is an inline query response MPEG4 GIF.
|
// InlineQueryResultMPEG4GIF is an inline query response MPEG4 GIF.
|
||||||
type InlineQueryResultMPEG4GIF struct {
|
type InlineQueryResultMPEG4GIF struct {
|
||||||
Type string `json:"type"` // required
|
Type string `json:"type"` // required
|
||||||
ID string `json:"id"` // 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"`
|
||||||
ThumbURL string `json:"thumb_url"`
|
ThumbURL string `json:"thumb_url"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Caption string `json:"caption"`
|
Caption string `json:"caption"`
|
||||||
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
|
||||||
InputMessageContent interface{} `json:"input_message_content"`
|
InputMessageContent interface{} `json:"input_message_content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InlineQueryResultVideo is an inline query response video.
|
// InlineQueryResultVideo is an inline query response video.
|
||||||
type InlineQueryResultVideo struct {
|
type InlineQueryResultVideo struct {
|
||||||
Type string `json:"type"` // required
|
Type string `json:"type"` // required
|
||||||
ID string `json:"id"` // 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
|
||||||
ThumbURL string `json:"thumb_url"`
|
ThumbURL string `json:"thumb_url"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Caption string `json:"caption"`
|
Caption string `json:"caption"`
|
||||||
Width int `json:"video_width"`
|
Width int `json:"video_width"`
|
||||||
Height int `json:"video_height"`
|
Height int `json:"video_height"`
|
||||||
Duration int `json:"video_duration"`
|
Duration int `json:"video_duration"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
|
||||||
InputMessageContent interface{} `json:"input_message_content"`
|
InputMessageContent interface{} `json:"input_message_content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ChosenInlineResult is an inline query result chosen by a User
|
// ChosenInlineResult is an inline query result chosen by a User
|
||||||
type ChosenInlineResult struct {
|
type ChosenInlineResult struct {
|
||||||
ResultID string `json:"result_id"`
|
ResultID string `json:"result_id"`
|
||||||
From User `json:"from"`
|
From User `json:"from"`
|
||||||
Query string `json:"query"`
|
Location Location `json:"location"`
|
||||||
|
InlineMessageID string `json:"inline_message_id"`
|
||||||
|
Query string `json:"query"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InputTextMessageContent contains text for displaying
|
// InputTextMessageContent contains text for displaying
|
||||||
|
|
Loading…
Reference in New Issue