Skip to main content

updateBotCallbackQuery

A callback button was pressed, and the button data was sent to the bot that created the button

type tg.UpdateBotCallbackQuery struct { /* ... */ }

Implements Update.

Fields

NameTypeRequiredDescription
QueryIDint64yesQuery ID
UserIDint64yesID of the user that pressed the button
PeerPeerClassyesChat where the inline keyboard was sent
MsgIDintyesMessage ID
ChatInstanceint64yesGlobal identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
Data[]byteCallback data
GameShortNamestringShort name of a Game to be returned, serves as the unique identifier for the game

References