messages.GetBotCallbackAnswer

class pyrogram.raw.functions.messages.GetBotCallbackAnswer

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

Details:
  • Layer: 223

  • 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
├── gametrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── msg_idint
├── databytes (optional)
└── passwordInputCheckPasswordSRP (optional)
├── srp_idlong
├── Abytes
└── M1bytes

Example

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