UpdateInlineBotCallbackQuery
- class pyrogram.raw.types.UpdateInlineBotCallbackQuery
This notification is received by bots when a button is pressed
Constructor of
Update.- Details:
Layer:
223ID:
691E9052
- Parameters:
query_id (
int64-bit) – Query IDuser_id (
int64-bit) – ID of the user that pressed the buttonmsg_id (
InputBotInlineMessageID) – ID of the inline message with the buttonchat_instance (
int64-bit) – Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.data (
bytes, optional) – Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.game_short_name (
str, optional) – Short name of a Game to be returned, serves as the unique identifier for the game
TL Schema
updateInlineBotCallbackQuery#691e9052
flags:#
query_id:long
user_id:long
msg_id:InputBotInlineMessageID
chat_instance:long
data:flags.0?bytes
game_short_name:flags.1?string
= Update
Parameter Tree
UpdateInlineBotCallbackQuery
├── query_id →
long├── user_id →
long├── msg_id →
InputBotInlineMessageID│ ├──
InputBotInlineMessageID│ │ ├── dc_id →
int│ │ ├── id →
long│ │ └── access_hash →
long│ ├── dc_id →
int│ ├── owner_id →
long│ ├── id →
int│ └── access_hash →
long├── chat_instance →
long├── data →
bytes (optional)└── game_short_name →
string (optional)Example
UpdateInlineBotCallbackQuery(
query_id=0,
user_id=0,
msg_id=InputBotInlineMessageID(
dc_id=0,
id=0,
access_hash=0
),
chat_instance=0,
)