Files
FascioSchoolBot/app/bot/dialogs/flows/user/start/dialogs.py
2025-09-25 21:13:04 +03:00

19 lines
601 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.common.profile.dialogs import ProfileSG
from app.bot.dialogs.widgets.getters import username_getter
from .states import UserStartSG
user_start_dialog = Dialog(
Window(
Format("Привет, {username}"),
Button(Const("события"), id="events"),
Start(Const("профиль"), id="profile", state=ProfileSG.profile),
getter=username_getter,
state=UserStartSG.start,
)
)