connect database
This commit is contained in:
@@ -3,13 +3,15 @@ from aiogram_dialog.widgets.input import TextInput
|
||||
from aiogram_dialog.widgets.kbd import Cancel, SwitchTo
|
||||
from aiogram_dialog.widgets.text import Const, Format
|
||||
|
||||
from app.bot.dialogs.widgets.getters import user_getter
|
||||
|
||||
from .states import ProfileSG
|
||||
|
||||
profile_dialog = Dialog(
|
||||
Window(
|
||||
Const("*Профиль*"),
|
||||
Format("Имя:"),
|
||||
Format("Телефон:"),
|
||||
Format("Имя: {user.fullname}"),
|
||||
Format("Телефон: {user.phone}"),
|
||||
SwitchTo(
|
||||
Const("изменить имя"),
|
||||
id="change_name",
|
||||
@@ -22,6 +24,7 @@ profile_dialog = Dialog(
|
||||
),
|
||||
Cancel(Const("назад")),
|
||||
state=ProfileSG.profile,
|
||||
getter=user_getter,
|
||||
),
|
||||
Window(
|
||||
Const("Введите имя"),
|
||||
|
||||
Reference in New Issue
Block a user