messages.GetBotCallbackAnswer
- class pyrogram.raw.functions.messages.GetBotCallbackAnswer
Press an inline callback button and get a callback answer from the bot
- Details:
Layer:
223ID:
9342CA07
- Parameters:
peer (
InputPeer) – Where was the inline keyboard sentmsg_id (
int32-bit) – ID of the Message with the inline keyboardgame (
bool, optional) – Whether this is a “play game” buttondata (
bytes, optional) – Callback datapassword (
InputCheckPasswordSRP, optional) – For buttons requiring you to verify your identity with your 2FA password, the SRP payload generated using SRP.
- Returns:
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│ ├──
InputPeerUserFromMessage│ │ ├── 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 →
bytesExample
await app.invoke(
GetBotCallbackAnswer(
game=None,
peer=await app.resolve_peer(chat_id),
msg_id=0,
data=b"data",
password=InputCheckPasswordEmpty(),
)
)