You've already forked Travel-Agent
feat: Reorganized project, added user registration, throttling middleware, help command, profile command
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user