download_file
Downloads a Telegram file by file_id and saves it locally, returning the saved path for use after receiving photos, videos, documents, or voice messages.
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) |