mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
Telegram's sendMediaGroup requires the first item to be a photo when a group mixes photos and videos; the previous code kept the source-site order, so a mixed post with a video first (twitter media order is not guaranteed) would 400 permanently. photos_first() stable-sorts photos ahead of videos/animations before chunking; within-kind order is kept.