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;
Parameters
Result
User
Possible errors
Code |
Type |
Description |
400 |
ABOUT_TOO_LONG |
About string too long. |
400 |
FIRSTNAME_INVALID |
The first name is invalid. |