remedia
Re-download attachments and embed images for archived messages, persist local paths, skip existing files, and retry failed downloads; long jobs continue in the background.
Instructions
Re-download media (attachments + embed images) for ALREADY archived messages and persist local paths (idempotent, skips existing files). Also retries entries whose earlier download failed (no local file).
Like capture(), long runs continue in the background: the call returns
a {"status": "running", ...} summary after wait seconds at the latest
and the download continues — call remedia() again for the same channel
to fetch the final result.
Args: channel: channel ID or full URL. limit: only the N most recent messages (None = all). wait: seconds to wait synchronously before returning a running summary. Returns: Dict: {"channel_id", "messages_with_media", "media_entries"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| limit | No | ||
| channel | Yes |