Сгенерил базовую модульную структуру спасибо Claude AI
Build and Push Docker Image / build (push) Successful in 2m15s

This commit is contained in:
2025-06-25 00:28:00 +05:00
parent a7d24616d7
commit 755280d7de
15 changed files with 517 additions and 276 deletions
+3
View File
@@ -0,0 +1,3 @@
"""
Фильтры для обработки сообщений.
"""
+11
View File
@@ -0,0 +1,11 @@
from aiogram.types import Message
from aiogram.filters import BaseFilter
from bot.config import ALLOWED_CHAT_IDS
class AllowedUsersFilter(BaseFilter):
"""Фильтр для проверки разрешенных пользователей."""
async def __call__(self, message: Message) -> bool:
return message.chat.id in ALLOWED_CHAT_IDS