User#

class pyrogram.raw.base.User#

Object defines a user.

Constructors:

This base type has 2 constructors available.

User

Indicates info about a certain user.

UserEmpty

Empty constructor, non-existent user.

Functions:

This object can be returned by 5 functions.

account.UpdateProfile

Updates user profile.

account.UpdateUsername

Changes username for the current user.

account.ChangePhone

Change the phone number of the current account.

users.GetUsers

Returns basic user info according to their identifiers.

contacts.ImportContactToken

Obtain user info from a temporary profile link.