Media Group
A media group is a Telegram message type that bundles multiple photos or videos into a single album, displayed inline as a swipeable gallery rather than as separate posts. Media groups use the sendMediaGroup Bot API method and carry captions per item, and Telegram shows the album caption when only one item has one. Channel operators use media groups to publish product showcases, event recaps, and tutorials without fragmenting related images into separate posts. Autogram supports scheduling and auto-publishing media groups as part of automation workflows.
An album is several messages
Sending an album returns an array of messages, not one message. Between two and ten items go out together, each tagged with a shared group identifier that clients use to render them as a single gallery. The practical consequence is clear: an album occupies several message ids, so editing or deleting it afterwards means addressing every one of its items rather than one post.
Mixing types and the caption budget
Photos and videos can sit together in one album; documents and audio files can only be grouped with their own kind. Captions belong to the individual items rather than to the album as a whole, and a media caption is capped at 1024 characters after formatting is parsed — a quarter of what a plain text message allows. Copy written for a text post often will not fit.
What an album cannot carry
The album send accepts no inline keyboard, so a call-to-action button cannot ride along with the gallery. Operators who need both usually publish the album and then a short follow-up message carrying the button, which appears as a separate post in the feed. That trade-off is worth weighing before choosing an album over a single captioned photo with a button attached.
Photo album or document album?
The media array of sendMediaGroup takes 2 to 10 items, and one image is sent as a single photo instead. Photos and videos can share an album. Documents and audio files can be grouped only with items of their own type. This matters for quality: Telegram compresses photos, so to deliver original files you send them as documents, and then the album cannot include a photo. The silent and forward-protection flags apply to the whole album, so you cannot silence one item. The order of the items in the array is the order readers swipe through, so put the strongest image first. Put the text on one item, usually the first, and do not repeat it on every item.
Publishing albums with Autogram
When you attach two or more images to a post, Autogram publishes them as an album. It sends one image as a single photo. Autogram accepts up to ten images in one post, the same ceiling as Telegram. Your post text becomes the caption of the first image. A caption is limited to 1024 characters, so the editor refuses a longer text on a post with images, and an automation that writes one has the AI shorten it or holds the post as a draft. Write albums with the short limit in mind, and keep a long story for a text post, which allows 4096 characters. Scheduled posts follow the same rules, so an album you plan for tomorrow is checked against the same limit as one you publish now.
Worked example: an event recap album
A meetup channel has six photos and a recap of 700 characters. Attach the six images to one post. Autogram sends them as one album in the order of your list and puts the text on the first image as its caption. The text is under 1024 characters, so it fits. The channel also wants a Register button for the next meetup. The album cannot carry it: Telegram attaches buttons to one message, and an album is several messages, so Autogram sends a post with more than one image without buttons. Publish a short second post with the button a few minutes later, or use one image with the button. Put the best photo first, because it opens the gallery.
How do bots receive albums?
A bot that reads a channel or chat does not get one album. It gets one message for each item, and each message carries the same media_group_id. The identifier is unique inside its chat. A webhook handler therefore gets several updates, and they may arrive in separate requests. Collect the items by media_group_id and wait a short time before you treat the album as complete. Do not count each update as a separate post in your own reports. The same logic applies to reactions: Autogram records them for each message of an album and shows the sum for the post.
Related features
Put these concepts to work
Automate your Telegram publishing with AI content, quality scoring, and smart scheduling.