Updates user profile.
userEmpty#200250ba id:int = User;
userSelf#720535ec id:int first_name:string last_name:string phone:string photo:UserProfilePhoto status:UserStatus inactive:Bool = User;
userContact#f2fb8319 id:int first_name:string last_name:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
userRequest#22e8ceb0 id:int first_name:string last_name:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
userForeign#5214c89d id:int first_name:string last_name:string access_hash:long photo:UserProfilePhoto status:UserStatus = User;
userDeleted#b29ad7cc id:int first_name:string last_name:string = User;
---functions---
account.updateProfile#f0888d68 first_name:string last_name:string = User;
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 |
Returns User object containing the updated current user profile.
Code | Type | Description |
---|---|---|
400 | ABOUT_TOO_LONG | About string too long. |
400 | FIRSTNAME_INVALID | The first name is invalid. |