download_media
Download media from a Telegram message using chat and message ID. Optionally save to a directory, fetch only a preview, or return small files inline.
Instructions
Скачать медиа из сообщения.
Args: download_dir: куда писать (если roots заявлены — путь валидируется). thumb_index: если задан — скачать только превью указанного индекса. inline: True — вернуть Image/Audio inline (≤1 MB) вместо файла.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| inline | No | ||
| message_id | Yes | ||
| thumb_index | No | ||
| download_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||