UpdateInlineBotCallbackQuery

class pyrogram.raw.types.UpdateInlineBotCallbackQuery

This notification is received by bots when a button is pressed

Constructor of Update.

Details:
  • Layer: 223

  • ID: 691E9052

Parameters:
  • query_id (int 64-bit) – Query ID

  • user_id (int 64-bit) – ID of the user that pressed the button

  • msg_id (InputBotInlineMessageID) – ID of the inline message with the button

  • chat_instance (int 64-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_idlong
├── user_idlong
├── msg_idInputBotInlineMessageID
│ │ ├── dc_idint
│ │ ├── idlong
│ │ └── access_hashlong
│ ├── dc_idint
│ ├── owner_idlong
│ ├── idint
│ └── access_hashlong
├── chat_instancelong
├── databytes (optional)
└── game_short_namestring (optional)

Example

UpdateInlineBotCallbackQuery(
    query_id=0,
    user_id=0,
    msg_id=InputBotInlineMessageID(
        dc_id=0,
        id=0,
        access_hash=0
    ),
    chat_instance=0,
)