Update some types.

bot-api-6.1
Syfaro 2016-04-12 13:26:18 -05:00
parent 595aba3dea
commit 109da1a19f
1 changed files with 61 additions and 59 deletions

View File

@ -348,7 +348,7 @@ type InlineQueryResultArticle struct {
ID string `json:"id"` // required
Title string `json:"title"` // required
InputMessageContent interface{} `json:"input_message_content"` // required
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
URL string `json:"url"`
HideURL bool `json:"hide_url"`
Description string `json:"description"`
@ -369,7 +369,7 @@ type InlineQueryResultPhoto struct {
Title string `json:"title"`
Description string `json:"description"`
Caption string `json:"caption"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent interface{} `json:"input_message_content"`
}
@ -383,7 +383,7 @@ type InlineQueryResultGIF struct {
ThumbURL string `json:"thumb_url"`
Title string `json:"title"`
Caption string `json:"caption"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent interface{} `json:"input_message_content"`
}
@ -397,7 +397,7 @@ type InlineQueryResultMPEG4GIF struct {
ThumbURL string `json:"thumb_url"`
Title string `json:"title"`
Caption string `json:"caption"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent interface{} `json:"input_message_content"`
}
@ -414,7 +414,7 @@ type InlineQueryResultVideo struct {
Height int `json:"video_height"`
Duration int `json:"video_duration"`
Description string `json:"description"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent interface{} `json:"input_message_content"`
}
@ -422,6 +422,8 @@ type InlineQueryResultVideo struct {
type ChosenInlineResult struct {
ResultID string `json:"result_id"`
From User `json:"from"`
Location Location `json:"location"`
InlineMessageID string `json:"inline_message_id"`
Query string `json:"query"`
}