tg_download_many
Batch-download multiple Telegram attachments from a chat using message IDs. Save up to 50 media files to a specified directory.
Instructions
Download several attachments at once (max 50). Get the ids from tg_media.
Args: chat: chat the messages belong to. message_ids: message ids carrying the media. dest: target directory. Defaults to tg-agent/data/downloads.
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": {
"chat": "<chat>",
"message_ids": "<message_ids>"
},
"name": "tg_download_many"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| dest | No | ||
| message_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |