Скачать вложение сообщения
dialogs_download_attachmentDownload an attachment from a specified Telegram dialog message and save it to a new local file path without overwriting existing files.
Instructions
Сохраняет вложение локально. destination должен быть новым файлом.
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": {
"dialog": "<dialog>",
"message": "<message>",
"destination": "<destination>"
},
"name": "dialogs_download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | No | Дело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели. | |
| index | No | Номер вложения, с нуля. | |
| dialog | Yes | Диалог: имя, @username, номер чата или идентификатор. | |
| message | Yes | ID сообщения из dialogs_history. | |
| destination | Yes | Путь нового файла; существующий не перезаписывается. |