savePreparedInlineMessage
Stores an inline message for a target user to send from a Mini App and returns a prepared message object for later delivery.
Instructions
Stores a message that can be sent by a user of a Mini App. Returns a PreparedInlineMessage object.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"result": "<result>"
},
"name": "savePreparedInlineMessage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | An 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 |