File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,10 @@ type APIResponse struct {
1919
2020// Update is an update response, from GetUpdates.
2121type Update struct {
22- UpdateID int `json:"update_id"`
23- Message Message `json:"message"`
24- InlineQuery InlineQuery `json:"inline_query"`
22+ UpdateID int `json:"update_id"`
23+ Message Message `json:"message"`
24+ InlineQuery InlineQuery `json:"inline_query"`
25+ ChosenInlineResult ChosenInlineResult `json:"chosen_inline_result"`
2526}
2627
2728// User is a user on Telegram.
@@ -361,3 +362,10 @@ type InlineQueryResultVideo struct {
361362 Title string `json:"title"`
362363 Description string `json:"description"`
363364}
365+
366+ // ChosenInlineResult is an inline query result chosen by a User
367+ type ChosenInlineResult struct {
368+ ResultID string `json:"result_id"`
369+ From User `json:"from"`
370+ Query string `json:"query"`
371+ }
You can’t perform that action at this time.
0 commit comments