Inspect Media Metadata in Message
get_media_infoInspect media metadata such as file size, dimensions, MIME type, and duration attached to a Telegram message before downloading, so you can verify file attributes first.
Instructions
Inspect media metadata (file size, dimensions, mime type, duration) attached to a specific message. Use before downloading to verify file attributes. To download the actual file, use download_media.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Optional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts. | |
| chat_id | Yes | Target Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number. | |
| message_id | Yes | Unique integer ID of the target message within the specified chat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |