Skip to main content

updateInlineBotCallbackQuery

This notification is received by bots when a button is pressed

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

Implements Update.

Fields​

NameTypeRequiredDescription
QueryIDint64yesQuery ID
UserIDint64yesID of the user that pressed the button
MsgIDInputBotInlineMessageIDClassyesID of the inline message with the button
ChatInstanceint64yesGlobal identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
Data[]byte—Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
GameShortNamestring—Short name of a Game to be returned, serves as the unique identifier for the game

References​