save_prepared_inline_message()

Client.save_prepared_inline_message()

Stores a message that can be sent by a user of a Mini App.

Parameters:
  • user_id (int | str) – Unique identifier of the target user that can use the prepared message.

  • result (InlineQueryResult) – An object describing the message to be sent.

  • allow_user_chats (bool, optional) – Allow sending in private chats with users.

  • allow_bot_chats (bool, optional) – Allow sending in private chats with bots.

  • allow_group_chats (bool, optional) – Allow sending in group and supergroup chats.

  • allow_channel_chats (bool, optional) – Allow sending in channel chats.

Returns:

PreparedInlineMessage – On success, the prepared message info is returned.