telegram api method · layer 229 · #d58f130a
messages.setBotCallbackAnswer
Set the callback answer to a user button press (bots only)
definition
messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
alert | true | Whether to show the message as a popup instead of a toast notification |
query_id | long | Query ID |
message | string | Popup to show |
url | string | URL to open |
cache_time | int | Cache validity |
returns
errors (6)
| code | error | description |
|---|---|---|
| 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 | MESSAGE_TOO_LONG | The provided message is too long. |
| 400 | QUERY_ID_INVALID | The query ID is invalid. |
| 400 | URL_INVALID | Invalid URL provided. |
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
| 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
| id | layers |
|---|---|
| #d58f130a | 62–229 |