telegram api method · layer 229 · #857ebdb8
messages.getPreparedInlineMessage
Obtain a prepared inline message generated by a mini app: invoked when handling web_app_send_prepared_message events
definition
messages.getPreparedInlineMessage#857ebdb8 bot:InputUser id:string = messages.PreparedInlineMessage;
parameters
| name | type | description |
|---|---|---|
bot | InputUser | The bot that owns the mini app that emitted the web_app_send_prepared_message event |
id | string | The id from the web_app_send_prepared_message event |
returns
messages.PreparedInlineMessage
errors (4)
| 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 | ID_EXPIRED | The passed prepared inline message ID has expired. |
| 400 | ID_INVALID | The passed 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 193–229
| id | layers |
|---|---|
| #857ebdb8 | 193–229 |