add profile dialog
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
from aiogram_dialog import Dialog, Window
|
||||
from aiogram_dialog.widgets.text import Format
|
||||
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 StartSG
|
||||
from .states import UserStartSG
|
||||
|
||||
start_dialog = Dialog(
|
||||
user_start_dialog = Dialog(
|
||||
Window(
|
||||
Format("Hello, {username}"),
|
||||
Button(Const("События"), id="events"),
|
||||
Start(Const("Профиль"), id="profile", state=UserProfileSG.profile),
|
||||
getter=username_getter,
|
||||
state=StartSG.start,
|
||||
state=UserStartSG.start,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user