mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-25 23:52:04 +00:00
media_from_file, media_from_url and build_media_group's closure each wrote the same per-kind match plus the same video-thumbnail attach. media_from takes the already-selected InputFile; the two builders that differ only in how that file is chosen are now two-line calls to it. The local-file branch keeps InputFile::file (no existence probe) and every caller still passes the item's own has_spoiler / thumbnail_url, so what reaches Telegram is the same.