messages.savePreparedInlineMessage #

Save a prepared inline message, to be shared by the user of the mini app using a web_app_send_prepared_message event

Layer 223

messages.botPreparedInlineMessage#8ecf0511 id:string expire_date:int = messages.BotPreparedInlineMessage;
---functions---
messages.savePreparedInlineMessage#f21f7f2f flags:# result:InputBotInlineResult user_id:InputUser peer_types:flags.0?Vector<InlineQueryPeerType> = messages.BotPreparedInlineMessage;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
resultInputBotInlineResultThe message
user_idInputUserThe user to whom the web_app_send_prepared_message event event will be sent
peer_typesflags.0?Vector<InlineQueryPeerType>Types of chats where this message can be sent

Result #

messages.BotPreparedInlineMessage

Only bots can use this method #

Possible errors #

CodeTypeDescription
400RESULT_ID_INVALIDOne of the specified result IDs is invalid.
400SEND_MESSAGE_GAME_INVALIDAn inputBotInlineMessageGame can only be contained in an inputBotInlineResultGame, not in an inputBotInlineResult/inputBotInlineResultPhoto/etc.
400USER_BOT_REQUIREDThis method can only be called by a bot.
400USER_ID_INVALIDThe provided user 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.