16 lines
483 B
Python
16 lines
483 B
Python
from aiogram import Router
|
|
from aiogram.filters import CommandStart
|
|
from aiogram.types import Message
|
|
from aiogram_dialog import DialogManager, StartMode
|
|
|
|
from app.bot.dialogs.flows.start.states import StartSG
|
|
|
|
commands_router = Router(name="commands_router")
|
|
|
|
|
|
@commands_router.message(CommandStart())
|
|
async def command_start_process(
|
|
message: Message, dialog_manager: DialogManager, user: dict
|
|
):
|
|
await dialog_manager.start(state=StartSG.start, mode=StartMode.RESET_STACK)
|