messages.GetBotCallbackAnswer

class pyrogram.raw.functions.messages.GetBotCallbackAnswer

Press an inline callback button and get a callback answer from the bot

Details:
  • Layer: 227

  • ID: 9342CA07

Parameters:
  • peer (InputPeer) – Where was the inline keyboard sent

  • msg_id (int 32-bit) – ID of the Message with the inline keyboard

  • game (bool, optional) – Whether this is a “play game” button

  • data (bytes, optional) – Callback data

  • password (InputCheckPasswordSRP, optional) – For buttons requiring you to verify your identity with your 2FA password, the SRP payload generated using SRP.

Returns:

messages.BotCallbackAnswer

TL Schema

messages.getBotCallbackAnswer#9342ca07
flags:#
game:flags.1?true
peer:InputPeer
msg_id:int
data:flags.0?bytes
password:flags.2?InputCheckPasswordSRP

= messages.BotCallbackAnswer

Parameter Tree

GetBotCallbackAnswer
├── game → true (optional)
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── msg_id → int
├── data → bytes (optional)
└── password → InputCheckPasswordSRP (optional)
├── srp_id → long
├── A → bytes
└── M1 → bytes

Example

await app.invoke(
    GetBotCallbackAnswer(
        game=None,
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        data=b"data",
        password=InputCheckPasswordEmpty(),
    )
)