Skip to content

Commit 49db4f5

Browse files
authored
callback: add missing struct fields (#647)
* fix: callback struct fields * fix: documentation
1 parent 06bef0a commit 49db4f5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

callback.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ type Callback struct {
2626
// a bad client can send arbitrary data in this field.
2727
Data string `json:"data"`
2828

29+
// ChatInstance is a global identifier, uniquely corresponding to
30+
// the chat to which the message with the callback button was sent.
31+
ChatInstance string `json:"chat_instance"`
32+
33+
// GameShortName is a unique identifier of the game for which a URL
34+
// is requested from the bot when a user presses the Play button of
35+
// that game. GameShortName may be empty
36+
GameShortName string `json:"game_short_name"`
37+
2938
// Unique displays an unique of the button from which the
3039
// callback was fired. Sets immediately before the handling,
3140
// while the Data field stores only with payload.

0 commit comments

Comments
 (0)