Download Media Attachment to Local Disk
download_mediaDownload attachments or media from a Telegram message to your local filesystem, saving files to configured allowed paths.
Instructions
Download an attachment or media file from a message to the local filesystem. Destination path must resolve within configured MCP allowed roots. To check metadata before downloading, use get_media_info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Optional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts. | |
| chat_id | Yes | Target Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number. | |
| file_path | No | Local filesystem path to the file to upload or send. Must resolve within configured MCP allowed roots. | |
| message_id | Yes | Unique integer ID of the target message within the specified chat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |