get_draft
Retrieves the draft message for a Telegram chat, username, phone number, or 'me'; returns an empty string when no draft exists.
Instructions
Get the draft message for a specific entity.
Finds the 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 get the draft message for.
This can be a Telegram chat ID, a username, a phone number, or 'me'.
Returns:
`str`:
The draft message (empty string if no draft) for the specific entity
or an error message if request 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>"
},
"name": "get_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |