Layer 220
MessagesGetPreparedInlineMessage
Obtain a prepared inline message generated by a mini app: invoked when handling web_app_send_prepared_message events
method
Users
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.PreparedInlineMessagePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | ID_EXPIRED | The passed prepared inline message ID has expired. |
| 400 | ID_INVALID | The passed ID is invalid. |
Gogram Example
// MessagesGetPreparedInlineMessage - positional arguments result, err := client.MessagesGetPreparedInlineMessage(&tg.InputUserSelf{}, "...") if err != nil { // handle error } // result is *tg.MessagesPreparedInlineMessage