new bot structure
This commit is contained in:
12
app/bot/handlers/commands.py
Normal file
12
app/bot/handlers/commands.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from aiogram import Router
|
||||
from aiogram.filters import CommandStart
|
||||
from aiogram.types import Message
|
||||
from aiogram_dialog import DialogManager
|
||||
|
||||
from app.bot.dialogs.flows.user.start.states import StartSG
|
||||
|
||||
commands_router = Router(name="commands_router")
|
||||
|
||||
@commands_router.message(CommandStart())
|
||||
async def command_start_process(message: Message, dialog_manager: DialogManager):
|
||||
await dialog_manager.start(state=StartSG.start)
|
||||
Reference in New Issue
Block a user