Download
tg_downloadQueue Telegram files for parallel, resumable download by message links, chat IDs, or filters, and get task IDs immediately for tracking.
Instructions
Queue files for download (parallel connections, resumable) and return task ids immediately. Three ways: 1) links=[message links]; 2) chat + message_ids; 3) chat + filters + limit (batch). Large batches above the user's limit wait for approval in the console (the result says requires_approval). Check size first with tg_list_files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tg_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Chat: @username, username, t.me link, t.me/c/<id> link, or numeric id such as -100123… | |
| limit | No | Max files when downloading by filter | |
| links | No | Message links | |
| since | No | Start date, ISO (e.g. 2025-01-01). | |
| types | No | File kinds. Default: everything except stickers. | |
| until | No | End date, ISO. | |
| subdir | No | Sub-folder under the download directory | |
| account | No | Account id (see tg_list_accounts). Defaults to the default account. | |
| extensions | No | Extensions, e.g. ["zip", "mp4"]. | |
| max_size_mb | No | ||
| message_ids | No | ||
| min_size_mb | No | ||
| oldest_first | No | ||
| include_album | No | Also download the other items of albums | |
| name_contains | No | File name or caption contains (case-insensitive). | |
| complete_archives | No | For split archives (x.7z.001, x.part1.rar…) also queue the other volumes |