# User

Object defines a user.

No such type at the current public layer.

### Constructors

| Constructor | Description |
| --- | --- |
| [userEmpty](/constructor/userEmpty.md) | Empty constructor, non-existent user. |
| [user](/constructor/user.md) | Indicates info about a certain user.\
\
Unless specified otherwise, when updating the [local peer database](/api/peers.md), 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 »](https://github.com/tdlib/td/blob/73035e4a69ed26df563652de14aa9c4c86d23420/td/telegram/UserManager.cpp#L3106) for an implementation of the logic to use when updating the [local user peer database](/api/peers.md). |

### Methods

| Method | Description |
| --- | --- |
| [account.updateProfile](/method/account.updateProfile.md) | Updates user profile. |
| [account.updateUsername](/method/account.updateUsername.md) | Changes username for the current user. |
| [account.changePhone](/method/account.changePhone.md) | Change the phone number of the current account |
| [contacts.importContactToken](/method/contacts.importContactToken.md) | Obtain user info from a [temporary profile link](/api/links.md#temporary-profile-links). |
| [messages.getFutureChatCreatorAfterLeave](/method/messages.getFutureChatCreatorAfterLeave.md) | Group/channel owners only: returns the ID of the user that will become the new owner of the group if we decide to leave the group, see [here »](/api/channel.md#leaving-groups-channels) for more info on the full flow. |
| [channels.getMessageAuthor](/method/channels.getMessageAuthor.md) | Can only be invoked by non-bot admins of a [monoforum »](/api/monoforum.md), obtains the original sender of a message sent by other monoforum admins to the monoforum, on behalf of the channel associated to the monoforum. |
| [bots.createBot](/method/bots.createBot.md) | Create a [managed bot »](/api/bots/managed-bots.md#creating-a-managed-bot) owned by the current user and controlled by the specified manager bot. |