download_file
Download a file from Telegram using its file_id, save it locally, and return the saved path. Use after receiving a message with media up to 20MB.
Instructions
Download a file from Telegram by file_id. Saves locally and returns the path. Use after receiving a message with a photo, video, document, voice, etc. Max 20MB (Telegram Bot API limit).
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": {
"file_id": "<file_id>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File ID from a message (photo[-1].file_id, document.file_id, video.file_id, etc.) | |
| dest_dir | No | Directory to save to (default: /root/telegram-mcp-downloads) |