Add new inline query related feature.

bot-api-6.1
Syfaro 2016-01-04 10:15:57 -06:00
parent 10c5261d91
commit f2b36838e6
1 changed files with 11 additions and 3 deletions

View File

@ -19,9 +19,10 @@ type APIResponse struct {
// Update is an update response, from GetUpdates.
type Update struct {
UpdateID int `json:"update_id"`
Message Message `json:"message"`
InlineQuery InlineQuery `json:"inline_query"`
UpdateID int `json:"update_id"`
Message Message `json:"message"`
InlineQuery InlineQuery `json:"inline_query"`
ChosenInlineResult ChosenInlineResult `json:"chosen_inline_result"`
}
// User is a user on Telegram.
@ -361,3 +362,10 @@ type InlineQueryResultVideo struct {
Title string `json:"title"`
Description string `json:"description"`
}
// ChosenInlineResult is an inline query result chosen by a User
type ChosenInlineResult struct {
ResultID string `json:"result_id"`
From User `json:"from"`
Query string `json:"query"`
}