set_draft
Saves a draft message for a specified Telegram entity (chat ID, username, phone number, or 'me'). Returns success or error; verify entity with search if unsure.
Instructions
Set a draft message for a specific entity.
Sets a draft message for an entity specified by username, chat_id,
phone number, or 'me'.
!IMPORTANT: If the entity is not found, it will return an error message.
If you are not sure about the entity, use the `search_dialogs`
tool and ask the user to select the correct entity from the list.
Args:
entity (`str`):
The identifier of the entity to save the draft message for.
This can be a Telegram chat ID, a username, a phone number, or 'me'.
message (`str`):
The message to save as a draft.
Returns:
`str`:
A success message if saved, or an error message if failed.
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": {
"entity": "<entity>",
"message": "<message>"
},
"name": "set_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | ||
| message | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |