Get bounded Telegram media
telegram_get_mediaRetrieve a specific photo, PDF, audio, or video thumbnail from a Telegram chat by message ID, choosing preview or full quality.
Instructions
Fetch one explicitly anchored photo, PDF document, audio item, or video thumbnail.
Preview transfers are capped at 2 MiB and full transfers at 12 MiB. Protected, self-destructing, secret, unsupported, and oversized media are rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | ||
| quality | No | preview | |
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| chat_id | Yes | ||
| quality | Yes | ||
| file_name | No | ||
| mime_type | Yes | ||
| is_preview | No | ||
| media_kind | Yes | ||
| message_id | Yes | ||
| size_bytes | Yes | ||
| content_type | Yes | ||
| trust_boundary | No |