list_media_window
Preview media items before saving. See chatId, kind, size, and expiration status to decide which files to download.
Instructions
Preview which media items would be saved by save_media_window. Read-only - does NOT download or write anything. Returns per-item entries with chatId, msgId, kind, sender, chat, timestampISO, sizeBytes, mimeType, and likelyExpired (true when the media-key is older than ~13 days and the CDN may have garbage-collected the blob). Use this BEFORE save_media_window so you can tell the user 'I would save 14 images and 6 voice notes, but 3 are likely expired - proceed?'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| kinds | No | Which media types to include. | |
| limit | No | ||
| chatId | No | Limit to one chat. Optional. | |
| excludeGroups | No |