Skip to main content
GET
Download media (images, videos) from a Telegram message. The response is the raw binary file with the correct MIME type in the Content-Type header. Responses are cached for 24 hours.
This endpoint does not require an API key but is heavily rate-limited to 2 requests per 60 seconds.

Path Parameters

string
required
The Telegram channel ID.
string
required
The message ID containing the media.

Response

Returns the binary media file with the appropriate Content-Type header (e.g., image/jpeg, video/mp4).

Error Response

string
Error message when the media is not found. Returns status 404.