Add new inline query related feature.
parent
10c5261d91
commit
f2b36838e6
8
types.go
8
types.go
|
@ -22,6 +22,7 @@ type Update struct {
|
||||||
UpdateID int `json:"update_id"`
|
UpdateID int `json:"update_id"`
|
||||||
Message Message `json:"message"`
|
Message Message `json:"message"`
|
||||||
InlineQuery InlineQuery `json:"inline_query"`
|
InlineQuery InlineQuery `json:"inline_query"`
|
||||||
|
ChosenInlineResult ChosenInlineResult `json:"chosen_inline_result"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// User is a user on Telegram.
|
// User is a user on Telegram.
|
||||||
|
@ -361,3 +362,10 @@ type InlineQueryResultVideo struct {
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Description string `json:"description"`
|
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"`
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue