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;
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 |
Code | Type | Description |
---|---|---|
400 | ABOUT_TOO_LONG | About string too long. |
400 | BUSINESS_CONNECTION_INVALID | The connection_id passed to the wrapping invokeWithBusinessConnection call is invalid. |
400 | FIRSTNAME_INVALID | The first name is invalid. |
Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.