OverviewPlatformsAPI ReferenceResources

Platform fields & media

Every Telegram platformSpecificData field and the image and video requirements.


Media requirements

Files above these limits are compressed automatically: images above 10 MB and videos above 50 MB. These are Telegram's own Bot API caps.

Compression has a ceiling of its own. A video over 200 MB is passed through untouched, and Telegram then refuses it.

Images

PropertyRequirement
Max per album10
FormatsJPEG, PNG, GIF, WebP
Max file size10 MB (auto-compressed)
Max resolutionWidth plus height must total 10,000 px or less; a larger image is downscaled

Videos

PropertyRequirement
Max per album10
FormatsMP4, MOV
Max file size50 MB (auto-compressed)
Max durationNo limit
CodecH.264 recommended

Media URLs must be direct HTTPS URLs, publicly accessible, with no redirects.

Telegram rejects HTTP URLs and redirecting links with "Wrong file identifier/HTTP URL specified". Upload files through the media endpoint to get a URL that qualifies.

Platform fields

All fields go in platformSpecificData on the Telegram entry.

FieldTypeDefaultDescription
parseMode"HTML", "Markdown", "MarkdownV2""HTML"How Telegram parses content. See Formatting.
disableWebPagePreviewbooleanfalseNo link preview for URLs in the message.
disableNotificationbooleanfalseDeliver silently: recipients get the message without a notification sound.
protectContentbooleanfalseRecipients cannot forward or save the message.
Was this page helpful?

On this page