User

Object defines a user.

Constructors

Constructor Description
userEmpty Empty constructor, non-existent user.
user Indicates info about a certain user.

Unless specified otherwise, 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).

See here » for an implementation of the logic to use when updating the local user peer database.

Methods

Method Description
account.updateProfile Updates user profile.
account.updateUsername Changes username for the current user.
account.changePhone Change the phone number of the current account
contacts.importContactToken Obtain user info from a temporary profile link.