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.
Per-item file names
Usefile_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:
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: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.