updateUserName

Changes the user's first name, last name and username.

updateUserName#da22d9ad user_id:int first_name:string last_name:string = Update;

Parameters

Name Type Description
user_id long User identifier
first_name string New first name. Corresponds to the new value of real_first_name field of the userFull constructor.
last_name string New last name. Corresponds to the new value of real_last_name field of the userFull constructor.
usernames Vector<Username> Usernames.

Type

Update

Related pages

userFull

Extended user info

When updating the local peer database ยป, all fields from the newly received constructor take priority over the old constructor cached locally (including by removing fields that aren't set in the new constructor).