Save a draft
save_draftStores a plain-text draft in an allow-listed Telegram chat without sending it, so users can prepare a message and leave it unsent.
Instructions
Store a plain-text draft on a single in-scope chat WITHOUT sending it. The chat must be inside this endpoint’s allow-list; out-of-scope targets are rejected. Requires the draft permission (distinct from send), is subject to the per-endpoint anti-ban quota and, when enabled, human confirmation. Saving an empty draft is not supported here; clearing a draft is out of scope for v1.
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": {
"peer": "<peer>",
"text": "<text>"
},
"name": "save_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | Chat reference: { kind:'id', value:'<decimal id>' } | { kind:'username', value:'@name' } | { kind:'me' }. | |
| text | Yes | Message body, 1..4096 characters. | |
| topicId | No | Address the draft to this forum topic of a forum supergroup. | |
| replyToMessageId | No | Optional id of a message this draft replies to (same chat). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saved | Yes | Whether the draft was stored. | |
| chat_id | Yes | Chat the draft was stored on. |