messages.getPreparedInlineMessage #
Obtain a prepared inline message generated by a mini app: invoked when handling web_app_send_prepared_message events¶
Layer 223
messages.preparedInlineMessage#ff57708d query_id:long result:BotInlineResult peer_types:Vector<InlineQueryPeerType> cache_time:int users:Vector<User> = messages.PreparedInlineMessage;
---functions---
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 |
Result #
messages.PreparedInlineMessage¶
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | ID_EXPIRED | The passed prepared inline message ID has expired. |
| 400 | ID_INVALID | The passed ID is invalid. |
Related pages #
Web events #
How telegram apps interact with webpages¶
Inline queries #
Users can interact with your bot via inline queries, straight from the text input field in any chat.¶
Mini Apps on Telegram #
Bots can offer users interactive HTML5 web apps to completely replace any website.¶