feat: skip action logs for dropped Telegram updates

This commit is contained in:
3252a8
2026-06-05 11:24:03 +03:00
parent 2e4599d068
commit fd1edf38b5
4 changed files with 56 additions and 4 deletions
@@ -24,6 +24,9 @@ class ActionLoggerMiddleware(BaseMiddleware):
result = await handler(event, data)
if data.get("skip_action_log") or data.get("antiflood_dropped"):
return result
session: AsyncSession = data["session"]
event_user: Optional[User] = data.get("event_from_user")