From ad8f05e20bff1fe371fad93fba1aaa50a5dac303 Mon Sep 17 00:00:00 2001 From: machka-pasla Date: Mon, 4 Aug 2025 14:32:53 +0300 Subject: [PATCH] Refactor notification service to streamline admin notifications - Removed the functionality to send suspicious promo attempt notifications to admins, simplifying the notification process. - Updated comments in the code to reflect the changes made in the notification handling logic. --- bot/services/notification_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot/services/notification_service.py b/bot/services/notification_service.py index f367acd..15af8e3 100644 --- a/bot/services/notification_service.py +++ b/bot/services/notification_service.py @@ -216,9 +216,8 @@ class NotificationService: suspicious_input=hd.quote(suspicious_input), timestamp=datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S %Z")) - # Send to log channel and admins + # Send to log channel await self._send_to_log_channel(message) - await self._send_to_admins(message) async def send_custom_notification(self, message: str, to_admins: bool = False, to_log_channel: bool = True, thread_id: Optional[int] = None):