setup profile edition

This commit is contained in:
2025-09-27 10:56:32 +03:00
parent 1a49545fff
commit 0875624aa5
6 changed files with 101 additions and 14 deletions

View 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 ""}