telegram api method · layer 229 · #9342ca07
messages.getBotCallbackAnswer
Press an inline callback button and get a callback answer from the bot
definition
messages.getBotCallbackAnswer#9342ca07 flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes password:flags.2?InputCheckPasswordSRP = messages.BotCallbackAnswer;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
game | true | Whether this is a "play game" button |
peer | InputPeer | Where was the inline keyboard sent |
msg_id | int | ID of the Message with the inline keyboard |
data | bytes | Callback data |
password | InputCheckPasswordSRP | For buttons requiring you to verify your identity with your 2FA password, the SRP payload generated using SRP. |
returns
errors (11)
| code | error | description |
|---|---|---|
| -503 | Timeout | Timeout while fetching data. |
| 400 | BOT_RESPONSE_TIMEOUT | A timeout occurred while fetching data from the bot. |
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 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 before executing this operation. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 62–229 · constructor id changed 1×
| id | layers |
|---|---|
| #810a9fec | 62–117 |
| #9342ca07 | 118–229 |