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.
This commit is contained in:
machka-pasla
2025-08-04 14:32:53 +03:00
parent b53e6a2cc3
commit ad8f05e20b
+1 -2
View File
@@ -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):