Skip to content

Commit f2b3683

Browse files
author
Syfaro
committed
Add new inline query related feature.
1 parent 10c5261 commit f2b3683

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

types.go

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ type APIResponse struct {
1919

2020
// Update is an update response, from GetUpdates.
2121
type 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+
}

0 commit comments

Comments
 (0)