User

Object defines a user.

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;
account.updateUsername#3e0bdd7c username:string = User;
account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;

contacts.importCard#4fe196fe export_card:Vector<int> = User;
contacts.resolveUsername#bf0131c username:string = User;

Constructors

userEmpty Empty constructor, non-existent user
userSelf Current authorized user
userContact User from the contact list
userRequest User not from the contacts list with known phone number
userForeign User not from the contacts list
userDeleted Deleted user

Methods

account.updateProfile Updates profile information of an authorized user