add profile dialog
This commit is contained in:
14
app/bot/dialogs/flows/admin/start/dialogs.py
Normal file
14
app/bot/dialogs/flows/admin/start/dialogs.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from aiogram_dialog import Dialog, Window
|
||||
from aiogram_dialog.widgets.text import Format
|
||||
|
||||
from app.bot.dialogs.widgets.getters import username_getter
|
||||
|
||||
from .states import AdminStartSG
|
||||
|
||||
admin_start_dialog = Dialog(
|
||||
Window(
|
||||
Format("Hello, {username}"),
|
||||
getter=username_getter,
|
||||
state=AdminStartSG.start,
|
||||
)
|
||||
)
|
||||
5
app/bot/dialogs/flows/admin/start/states.py
Normal file
5
app/bot/dialogs/flows/admin/start/states.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from aiogram.fsm.state import State, StatesGroup
|
||||
|
||||
|
||||
class AdminStartSG(StatesGroup):
|
||||
start = State()
|
||||
Reference in New Issue
Block a user