get_recent_media
Download recent media items from a Telegram chat. Filter by type (photo, video, document) and set the number of messages to scan.
Instructions
Download the most recent media items from a chat.
Args: chat: Chat id/@username/title. limit: How many recent messages to scan (default 20, capped at 200). kind: Optional filter — 'photo' / 'video' / 'document' / 'other'. dest_dir: Target directory (default TELEGRAM_DOWNLOAD_DIR).
Returns [{message_id, kind, path}] for successfully downloaded media. This is the fast path for pulling images out of a group (e.g. the Arcanara Juni-Treffen photos). Paths are absolute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| kind | No | ||
| limit | No | ||
| dest_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |