fix: Fixed error with calling commands within active state

This commit is contained in:
ITQ
2024-03-23 02:42:41 +03:00
parent 4f3295a315
commit 675e5ab891
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
__all__ = ()
from aiogram import Router
from aiogram.filters import Command
from aiogram.filters import Command, StateFilter
from aiogram.types import Message
from app import messages
@@ -11,6 +11,6 @@ from app.filters.user import Registered
router = Router(name="help_command")
@router.message(Command("help"), Registered())
@router.message(Command("help"), Registered(), StateFilter(None))
async def command_help_handler(message: Message) -> None:
await message.answer(messages.HELP_MESSAGE)