Files
FascioSchoolBot/app/bot/dialogs/flows/user/start/dialogs.py
2025-09-25 20:48:39 +03:00

19 lines
600 B
Python

from aiogram_dialog import Dialog, Window
from aiogram_dialog.widgets.kbd import Button, Start
from aiogram_dialog.widgets.text import Const, Format
from app.bot.dialogs.flows.user.profile.dialogs import UserProfileSG
from app.bot.dialogs.widgets.getters import username_getter
from .states import UserStartSG
user_start_dialog = Dialog(
Window(
Format("Hello, {username}"),
Button(Const("События"), id="events"),
Start(Const("Профиль"), id="profile", state=UserProfileSG.profile),
getter=username_getter,
state=UserStartSG.start,
)
)