savePreparedInlineMessage¶
Returns: PreparedInlineMessage
- class litegram.methods.save_prepared_inline_message.SavePreparedInlineMessage(*, user_id: int, result: InlineQueryResultUnion, allow_user_chats: bool | None = None, allow_bot_chats: bool | None = None, allow_group_chats: bool | None = None, allow_channel_chats: bool | None = None, **extra_data: Any)[source]¶
Stores a message that can be sent by a user of a Mini App. Returns a
litegram.types.prepared_inline_message.PreparedInlineMessageobject.Source: https://core.telegram.org/bots/api#savepreparedinlinemessage
- result: InlineQueryResultUnion¶
A JSON-serialized object describing the message to be sent
Usage¶
As bot method¶
result: PreparedInlineMessage = await bot.save_prepared_inline_message(...)
Method as object¶
Imports:
from litegram.methods.save_prepared_inline_message import SavePreparedInlineMessagealias:
from litegram.methods import SavePreparedInlineMessage
With specific bot¶
result: PreparedInlineMessage = await bot(SavePreparedInlineMessage(...))
As reply into Webhook in handler¶
return SavePreparedInlineMessage(...)