updateUserName #

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

Layer 223

updateUserName#a7848924 user_id:long first_name:string last_name:string usernames:Vector<Username> = Update;

Parameters #

NameTypeDescription
user_idlongUser identifier
first_namestringNew first name. Corresponds to the new value of real_first_name field of the userFull constructor.
last_namestringNew last name. Corresponds to the new value of real_last_name field of the userFull constructor.
usernamesVector<Username>Usernames.

Type #

Update

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).