Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ type Callback struct {
// a bad client can send arbitrary data in this field.
Data string `json:"data"`

// ChatInstance is a global identifier, uniquely corresponding to
// the chat to which the message with the callback button was sent.
ChatInstance string `json:"chat_instance"`

// GameShortName is a unique identifier of the game for which a URL
// is requested from the bot when a user presses the Play button of
// that game. GameShortName may be empty
GameShortName string `json:"game_short_name"`

// Unique displays an unique of the button from which the
// callback was fired. Sets immediately before the handling,
// while the Data field stores only with payload.
Expand Down