Skip to content

Commit 536eb52

Browse files
Add chosen inline result type documentation
1 parent 874f3f2 commit 536eb52

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

types.go

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,11 +1557,22 @@ type InlineQueryResultGame struct {
15571557

15581558
// ChosenInlineResult is an inline query result chosen by a User
15591559
type ChosenInlineResult struct {
1560-
ResultID string `json:"result_id"`
1561-
From *User `json:"from"`
1562-
Location *Location `json:"location"`
1563-
InlineMessageID string `json:"inline_message_id"`
1564-
Query string `json:"query"`
1560+
// ResultID the unique identifier for the result that was chosen
1561+
ResultID string `json:"result_id"`
1562+
// From the user that chose the result
1563+
From *User `json:"from"`
1564+
// Location sender location, only for bots that require user location
1565+
//
1566+
// optional
1567+
Location *Location `json:"location"`
1568+
// InlineMessageID identifier of the sent inline message.
1569+
// Available only if there is an inline keyboard attached to the message.
1570+
// Will be also received in callback queries and can be used to edit the message.
1571+
//
1572+
// optional
1573+
InlineMessageID string `json:"inline_message_id"`
1574+
// Query the query that was used to obtain the result
1575+
Query string `json:"query"`
15651576
}
15661577

15671578
// InputTextMessageContent contains text for displaying

0 commit comments

Comments
 (0)