all repos — telegram-bot-api @ f2b36838e6134c4db9b3f4d78d9cd2fe40e25724

Golang bindings for the Telegram Bot API

Add new inline query related feature.
Syfaro syfaro@foxpaw.in
Mon, 04 Jan 2016 10:15:57 -0600
commit

f2b36838e6134c4db9b3f4d78d9cd2fe40e25724

parent

10c5261d919e9311450a5ddb950c759b31f8ec0d

1 files changed, 11 insertions(+), 3 deletions(-)

jump to
M types.gotypes.go

@@ -19,9 +19,10 @@ }

// Update is an update response, from GetUpdates. type Update struct { - UpdateID int `json:"update_id"` - Message Message `json:"message"` - InlineQuery InlineQuery `json:"inline_query"` + UpdateID int `json:"update_id"` + Message Message `json:"message"` + InlineQuery InlineQuery `json:"inline_query"` + ChosenInlineResult ChosenInlineResult `json:"chosen_inline_result"` } // User is a user on Telegram.

@@ -361,3 +362,10 @@ ThumbURL string `json:"thumb_url"`

Title string `json:"title"` 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"` +}