account.updateProfile

Updates user profile.

userEmpty#200250ba id:int = User;
userSelf#7007b451 id:int first_name:string last_name:string username:string phone:string photo:UserProfilePhoto status:UserStatus inactive:Bool = User;
userContact#cab35e18 id:int first_name:string last_name:string username:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
userRequest#d9ccc4ef id:int first_name:string last_name:string username:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
userForeign#75cf7a8 id:int first_name:string last_name:string username:string access_hash:long photo:UserProfilePhoto status:UserStatus = User;
userDeleted#d6016d7a id:int first_name:string last_name:string username:string = User;
---functions---
account.updateProfile#f0888d68 first_name:string last_name:string = User;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
first_name flags.0?string New user first name
last_name flags.1?string New user last name
about flags.2?string New bio

Result

User

Possible errors

Code Type Description
400 ABOUT_TOO_LONG About string too long.
400 FIRSTNAME_INVALID The first name is invalid.