setup profile edition
This commit is contained in:
8
app/bot/dialogs/flows/profile/getters.py
Normal file
8
app/bot/dialogs/flows/profile/getters.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from aiogram.types import User
|
||||
from aiogram_dialog import DialogManager
|
||||
|
||||
from app.infrastructure.database.models import User as UserModel
|
||||
|
||||
|
||||
async def phone_getter(dialog_manager: DialogManager, event_from_user: User, user: UserModel, **kwargs):
|
||||
return {"phone": f"\+{user.phone}" if user.phone else ""}
|
||||
Reference in New Issue
Block a user