feat: Reorganized project, added user registration, throttling middleware, help command, profile command

This commit is contained in:
ITQ
2024-03-20 20:53:43 +03:00
parent 7086a1cf52
commit 6d755490d6
21 changed files with 603 additions and 44 deletions
+16
View File
@@ -0,0 +1,16 @@
__all__ = ()
from aiogram import Router
from aiogram.filters import Command
from aiogram.types import Message
from app import messages
from app.filters.user_filter import Registered
router = Router(name="help_command")
@router.message(Command("help"), Registered())
async def command_help_handler(message: Message) -> None:
await message.answer(messages.HELP_MESSAGE)