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).
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) |