savePreparedInlineMessage
Store an inline message for a user to send later, returning a unique ID and expiration date. Enable Mini App users to quickly send pre-approved content.
Instructions
Store a message that can be sent by a user of a Mini App. Returns a PreparedInlineMessage object with a unique identifier and expiration date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | A JSON-serialized InlineQueryResult object describing the message to be sent. | |
| user_id | Yes | Unique identifier of the target user that can use the prepared message. | |
| allow_bot_chats | No | Pass True if the message can be sent to private chats with bots. | |
| allow_user_chats | No | Pass True if the message can be sent to private chats with users. | |
| allow_group_chats | No | Pass True if the message can be sent to group and supergroup chats. | |
| allow_channel_chats | No | Pass True if the message can be sent to channel chats. |