13 lines
430 B
Python
13 lines
430 B
Python
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)
|