Add chosen inline result type documentation
parent
874f3f2c47
commit
536eb5215a
11
types.go
11
types.go
|
@ -1557,10 +1557,21 @@ type InlineQueryResultGame struct {
|
||||||
|
|
||||||
// ChosenInlineResult is an inline query result chosen by a User
|
// ChosenInlineResult is an inline query result chosen by a User
|
||||||
type ChosenInlineResult struct {
|
type ChosenInlineResult struct {
|
||||||
|
// ResultID the unique identifier for the result that was chosen
|
||||||
ResultID string `json:"result_id"`
|
ResultID string `json:"result_id"`
|
||||||
|
// From the user that chose the result
|
||||||
From *User `json:"from"`
|
From *User `json:"from"`
|
||||||
|
// Location sender location, only for bots that require user location
|
||||||
|
//
|
||||||
|
// optional
|
||||||
Location *Location `json:"location"`
|
Location *Location `json:"location"`
|
||||||
|
// InlineMessageID identifier of the sent inline message.
|
||||||
|
// Available only if there is an inline keyboard attached to the message.
|
||||||
|
// Will be also received in callback queries and can be used to edit the message.
|
||||||
|
//
|
||||||
|
// optional
|
||||||
InlineMessageID string `json:"inline_message_id"`
|
InlineMessageID string `json:"inline_message_id"`
|
||||||
|
// Query the query that was used to obtain the result
|
||||||
Query string `json:"query"`
|
Query string `json:"query"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue