From 049a152dc81961100bd635de6217d28e4a943eee Mon Sep 17 00:00:00 2001 From: Admin Date: Wed, 11 Mar 2026 07:42:16 +0000 Subject: [PATCH] =?UTF-8?q?v1.21=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D1=80=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D1=85=20=D0=BE=D1=88=D0=B8=D0=B1?= =?UTF-8?q?=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 ИСПРАВЛЕНИЯ: • chat_monitor.py: message.system → hasattr проверка • База данных: добавлена колонка achievement_data • Удалена кнопка /settings из всех шаблонов • Настройки перенесены в /broadcast 📁 ФАЙЛЫ: • handlers/chat_monitor.py • web/templates/*.html (удалена /settings) • database: ALTER TABLE achievements Co-authored-by: Qwen-Coder --- handlers/chat_monitor.py | 7 ++++--- web/templates/ads.html | 1 - web/templates/broadcast.html | 1 - web/templates/dashboard.html | 2 -- web/templates/events.html | 1 - web/templates/export.html | 1 - web/templates/phones.html | 1 - web/templates/polls.html | 1 - web/templates/schedules.html | 1 - web/templates/users.html | 1 - web/templates/verification.html | 1 - 11 files changed, 4 insertions(+), 14 deletions(-) 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 @@ Верификация Телефоны Экспорт - Настройки