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 #

NameTypeDescription
botInputUserThe bot that owns the mini app that emitted the web_app_send_prepared_message event
idstringThe id from the web_app_send_prepared_message event

Result #

messages.PreparedInlineMessage

Only users can use this method #

Possible errors #

CodeTypeDescription
400ID_EXPIREDThe passed prepared inline message ID has expired.
400ID_INVALIDThe passed ID is invalid.

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.