Link Search Menu Expand Document

Constructor: updateBotCallbackQuery

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
query_idlongYesQuery ID
user_idlongYesID of the user that pressed the button
peerlongYesChat where the inline keyboard was sent
msg_idintYesMessage ID
chat_instancelongYesGlobal identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
databytesOptionalCallback data
game_short_namestringOptionalShort name of a Game to be returned, serves as the unique identifier for the game

Type: Update

Example:

$updateBotCallbackQuery = ['_' => 'updateBotCallbackQuery', 'query_id' => long, 'user_id' => long, 'peer' => long, 'msg_id' => int, 'chat_instance' => long, 'data' => 'bytes', 'game_short_name' => 'string'];