Link Search Menu Expand Document

Constructor: updateBusinessBotCallbackQuery

Back to constructors index

A callback button sent via a business connection 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
connection_idstringYesBusiness connection ID
messageMessageOptionalMessage that contains the keyboard (also contains info about the chat where the message was sent).
reply_to_messageMessageOptionalThe message that message is replying to.
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

Type: Update

Example:

$updateBusinessBotCallbackQuery = ['_' => 'updateBusinessBotCallbackQuery', 'query_id' => long, 'user_id' => long, 'connection_id' => 'string', 'message' => Message, 'reply_to_message' => Message, 'chat_instance' => long, 'data' => 'bytes'];