mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-03-05 13:23:48 +00:00
Telegram limits photo captions to 1024 characters. When menu_text or rules_text exceeds 900 chars (with promo hints, random messages etc), bot.send_photo fails with TelegramBadRequest. Added len() check before each of 3 send_photo calls in required_sub_channel_check — falls back to send_message when text is too long, consistent with _answer_with_photo in message_patch.py.