Skip to main content
send_audio, send_video, send_photo, and send_document accept a list. A list with more than one item is sent as a media group.
Lists larger than 10 are split into multiple groups automatically. Telegram’s caption limit applies to each item, not to the group as a whole.

Per-item file names

Use file_names to name in-memory or file-object uploads:
file_names is indexed across all chunks, so the eleventh item still receives the eleventh name.

Per-item metadata

Use a (source, file_name) tuple or a dictionary when each item needs different metadata:
Dictionaries may include supported Telegram media fields such as caption, parse_mode, caption_entities, title, performer, duration, width, height, and thumbnail.

Single-item lists

A list with exactly one item is sent as a normal single message, so single-file metadata still works:
For groups, put per-file metadata inside the tuple or dictionary. Top-level single-file options such as duration or thumbnail are only used for single sends.
A top-level caption and parse_mode are applied to the first item in each group. To caption a different item, set caption in that item’s dictionary.