add common dialogs
This commit is contained in:
@@ -1,13 +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.common.profile.dialogs import ProfileSG
|
||||
from app.bot.dialogs.widgets.getters import username_getter
|
||||
|
||||
from .states import AdminStartSG
|
||||
|
||||
admin_start_dialog = Dialog(
|
||||
Window(
|
||||
Format("Hello, {username}"),
|
||||
Format("Привет, {username}"),
|
||||
Button(Const("события"), id="events"),
|
||||
Button(Const("создать событие"), when="is_admin"),
|
||||
Start(Const("профиль"), id="profile", state=ProfileSG.profile),
|
||||
getter=username_getter,
|
||||
state=AdminStartSG.start,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user