add common dialogs

This commit is contained in:
2025-09-25 21:13:04 +03:00
parent cbe1919343
commit 250a349209
7 changed files with 30 additions and 18 deletions

View File

@@ -2,16 +2,16 @@ 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.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("Hello, {username}"),
Button(Const("События"), id="events"),
Start(Const("Профиль"), id="profile", state=UserProfileSG.profile),
Format("Привет, {username}"),
Button(Const("события"), id="events"),
Start(Const("профиль"), id="profile", state=ProfileSG.profile),
getter=username_getter,
state=UserStartSG.start,
)