From 55510a43794ace4d68ff093e45776015ccd437df Mon Sep 17 00:00:00 2001 From: UdoChudo Date: Thu, 19 Jun 2025 23:50:43 +0500 Subject: [PATCH] chore(notification mode switch): update icon in final message for notification importance change Signed-off-by: UdoChudo --- app/bot/handlers/notification_switch_mode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/bot/handlers/notification_switch_mode.py b/app/bot/handlers/notification_switch_mode.py index 4874201..f97e0ba 100644 --- a/app/bot/handlers/notification_switch_mode.py +++ b/app/bot/handlers/notification_switch_mode.py @@ -1,8 +1,9 @@ import telebot from telebot.types import Message, InlineKeyboardMarkup, InlineKeyboardButton -from app.bot.keyboards.main_menu import get_main_menu + from app import Subscriptions, db from app.bot.constants import UserStates +from app.bot.keyboards.main_menu import get_main_menu from app.bot.keyboards.settings_menu import get_settings_menu from app.bot.utils.auth import auth from app.bot.utils.tg_audit import log_user_event @@ -60,7 +61,7 @@ def register_callback_notification(bot, app, state_manager): mode_text_emoji = "⛔️ Критические события" if disaster_only else "⚠️ Все события" mode_text = "Критические события" if disaster_only else "Все события" - bot.send_message(chat_id, f"✅ Режим уведомлений успешно изменён на:\n {mode_text_emoji}",reply_markup=get_settings_menu()) + bot.send_message(chat_id, f"🔄 Режим уведомлений успешно изменён на:\n {mode_text_emoji}",reply_markup=get_settings_menu()) log_user_event(chat_id, app, username, f"Режим уведомлений изменился на: {mode_text}") state_manager.set_state(chat_id, UserStates.SETTINGS_MENU)