From 4e58fda4a5ebbcb4658045f5dd84c0d27537e47a Mon Sep 17 00:00:00 2001 From: machka-pasla Date: Sat, 9 Aug 2025 09:51:21 +0300 Subject: [PATCH] Update broadcast message handler to enforce HTML parsing and disable web page previews - Changed the parse_mode to "HTML" for broadcast messages to ensure proper formatting. - Added disable_web_page_preview option to enhance message presentation and control over content display. --- bot/handlers/admin/broadcast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/handlers/admin/broadcast.py b/bot/handlers/admin/broadcast.py index 6a56cc7..9b856f1 100644 --- a/bot/handlers/admin/broadcast.py +++ b/bot/handlers/admin/broadcast.py @@ -215,8 +215,8 @@ async def confirm_broadcast_callback_handler( await queue_manager.send_message( chat_id=uid, text=text, - entities=entities, - parse_mode=None, # переопределяем глобальный HTML, т.к. используем entities + parse_mode="HTML", + disable_web_page_preview=True, ) sent_count += 1