Skip to content

Commit

Permalink
callback: add missing struct fields (#647)
Browse files Browse the repository at this point in the history
* fix: callback struct fields

* fix: documentation
  • Loading branch information
rapour authored Feb 25, 2024
1 parent 06bef0a commit 49db4f5
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit 49db4f5

Please sign in to comment.