Save a Telegram attachment locally
telegram_download_fileSave a selected Telegram document, photo, audio, or video to a private folder and receive a local absolute path plus SHA256 hash, with a configurable size limit up to 100 MiB and no overwrites.
Instructions
Save an explicitly selected document, photo, audio or full video to a private folder.
Returns a local absolute path and SHA256, not file bytes in model context. Default maximum 20 MiB; explicit ceiling 100 MiB. No overwrites, automatic opening or execution. Protected/self-destructing media is rejected. Copies persist until the user removes them. Original preview tools keep their existing limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | ||
| max_bytes | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sha256 | Yes | ||
| chat_id | Yes | ||
| file_name | Yes | ||
| mime_type | Yes | ||
| message_id | Yes | ||
| size_bytes | Yes | ||
| trust_boundary | No |