diff --git a/handlers/chat_monitor.py b/handlers/chat_monitor.py index 6dd815a..0dbc9f1 100644 --- a/handlers/chat_monitor.py +++ b/handlers/chat_monitor.py @@ -32,9 +32,10 @@ async def monitor_all_messages(message: Message): if message.from_user.is_bot: return - # Пропускаем сервисные сообщения - if message.system: - return + # Пропускаем сервисные сообщения (в aiogram 3.x нет message.system) + if message.chat.type != 'private' and hasattr(message, 'is_topic_closed'): + # Это сообщение из темы форума — пропускаем служебные + pass user_id = message.from_user.id chat_id = message.chat.id diff --git a/web/templates/ads.html b/web/templates/ads.html index 7b44a93..a9bb326 100644 --- a/web/templates/ads.html +++ b/web/templates/ads.html @@ -28,7 +28,6 @@ События Расписания Экспорт - Настройки
diff --git a/web/templates/broadcast.html b/web/templates/broadcast.html index 87fa338..0d093e7 100644 --- a/web/templates/broadcast.html +++ b/web/templates/broadcast.html @@ -31,7 +31,6 @@ События Расписания Экспорт - Настройки
diff --git a/web/templates/dashboard.html b/web/templates/dashboard.html index f8fc13d..5c9b895 100644 --- a/web/templates/dashboard.html +++ b/web/templates/dashboard.html @@ -103,7 +103,6 @@ События Расписания Экспорт - Настройки
@@ -193,7 +192,6 @@ Экспорт JSON - Настройки diff --git a/web/templates/events.html b/web/templates/events.html index adbba6c..157eb28 100644 --- a/web/templates/events.html +++ b/web/templates/events.html @@ -28,7 +28,6 @@ События Расписания Экспорт - Настройки
diff --git a/web/templates/export.html b/web/templates/export.html index 374f58d..ef4f69e 100644 --- a/web/templates/export.html +++ b/web/templates/export.html @@ -27,7 +27,6 @@ Дашборд Пользователи Экспорт - Настройки
diff --git a/web/templates/phones.html b/web/templates/phones.html index e43f459..7e234f6 100644 --- a/web/templates/phones.html +++ b/web/templates/phones.html @@ -29,7 +29,6 @@ События Расписания Экспорт - Настройки
diff --git a/web/templates/polls.html b/web/templates/polls.html index 1c446d6..ecb68c0 100644 --- a/web/templates/polls.html +++ b/web/templates/polls.html @@ -28,7 +28,6 @@ События Расписания Экспорт - Настройки
diff --git a/web/templates/schedules.html b/web/templates/schedules.html index 77c5460..7062bbd 100644 --- a/web/templates/schedules.html +++ b/web/templates/schedules.html @@ -28,7 +28,6 @@ События Расписания Экспорт - Настройки
diff --git a/web/templates/users.html b/web/templates/users.html index e695d59..66308c9 100644 --- a/web/templates/users.html +++ b/web/templates/users.html @@ -29,7 +29,6 @@ Верификация Телефоны Экспорт - Настройки
diff --git a/web/templates/verification.html b/web/templates/verification.html index 06a05b1..133f092 100644 --- a/web/templates/verification.html +++ b/web/templates/verification.html @@ -32,7 +32,6 @@ Верификация Телефоны Экспорт - Настройки