Obtain a prepared inline message generated by a mini app: invoked when handling web_app_send_prepared_message events
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;
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 |
messages.PreparedInlineMessage
Code | Type | Description |
---|---|---|
400 | ID_EXPIRED | The passed prepared inline message ID has expired. |
400 | ID_INVALID | The passed ID is invalid. |
How telegram apps interact with webpages
Users can interact with your bot via inline queries, straight from the text input field in any chat.
Bots can offer users interactive HTML5 web apps to completely replace any website.