Download Telegram media by t.me link
tg_download_urlDownload media from specific Telegram message links and get absolute paths of newly downloaded files; existing files are skipped.
Instructions
Download the media of specific Telegram messages given their t.me links (e.g. https://t.me/channel/123) and return the absolute paths of newly downloaded files. Use when you already have message links rather than a chat to scan. Already-present files are skipped (--skip-same).
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": {
"urls": "<urls>"
},
"name": "tg_download_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | No | Destination directory (default ~/Downloads/telegram) | |
| urls | Yes | Telegram message links; each must start with https://t.me/ | |
| extensions | No | Comma-separated file extensions to include, e.g. 'xlsx,pdf' |