messages.getBotCallbackAnswer
Press an inline callback button and get a callback answer from the bot
| Name | Type | Required | Description |
|---|---|---|---|
game | true | No | Whether this is a "play game" button |
peer | InputPeer | Yes | Where was the inline keyboard sent |
msg_id | int | Yes | ID of the Message with the inline keyboard |
data | bytes | No | Callback data |
password | InputCheckPasswordSRP | No | For buttons [requiring you to verify your identity with your 2FA password](https://core.telegram.org/constructor/keyboardButtonCallback.md), the SRP payload generated using [SRP](https://core.telegram.org/api/srp.md). |
Responses
messages.BotCallbackAnswer
MTProto RPC
- 400 · BOT_RESPONSE_TIMEOUT — A timeout occurred while fetching data from the bot.
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 400 · DATA_INVALID — Encrypted data invalid.
- 400 · MESSAGE_ID_INVALID — The provided message id is invalid.
- 400 · MSG_ID_INVALID — Invalid message ID provided.
- 400 · PASSWORD_MISSING — You must [enable 2FA](https://core.telegram.org/api/srp.md) before executing this operation.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.