Download Message Media
View All Telegram Messaging API APIs →Download the media (photo or document) attached to a specific message and return it base64-encoded with its MIME type. Provide the sessionId, the peer, and the numeric messageId from the chat history response.
API Features
Direct download Fetches the attachment so you receive usable file bytes
Base64 payload Returns the media as base64 for easy storage, forwarding, or re-serving
MIME included The response carries the file's MIME type alongside the bytes
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
GET
/api/project/telegram-messaging/download-media API Response (JSON)
{} Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Archive inbound attachments to object storage or a CRM record
- Process received images/documents in an automation pipeline
- Re-serve media in a custom support or messaging UI