Add incidents log and viewer

This commit is contained in:
2026-02-08 01:33:14 +03:00
parent 4eb202c2ed
commit 4e79c401a9
8 changed files with 804 additions and 1 deletions

View File

@@ -1,4 +1,6 @@
from aiogram import Bot
from app import cfg
from services.incidents import log_incident
async def notify(bot: Bot, chat_id: int, text: str):
@@ -6,3 +8,7 @@ async def notify(bot: Bot, chat_id: int, text: str):
await bot.send_message(chat_id, text)
except Exception:
pass
try:
log_incident(cfg, text)
except Exception:
pass