# userContact

A user that is a contact of the current authorized user.

No such constructor in the current schema.

### Parameters

| Name | Type | Description |
| --- | :---: | --- |
| **id** | [int](/type/int.md) | User identifier |
| **first\_name** | [string](/type/string.md) | First name ([see below](#displaying-the-users-name)) |
| **last\_name** | [string](/type/string.md) | Last name ([see below](#displaying-the-users-name)) |
| **access\_hash** | [long](/type/long.md) | Checksum, dependent on user ID |
| **phone** | [string](/type/string.md) | Phone number |
| **photo** | [UserProfilePhoto](/type/UserProfilePhoto.md) | Profile photo |
| **status** | [UserStatus](/type/UserStatus.md) | Current status |
| **username** | [string](/type/string.md) | Username |

### Type
[User](/type/User.md)

### Displaying the user's name

The **first\_name** and **last\_name** fields are assigned by the server as follows:

1. If the user **id** is in the current user's phone Contacts and the name for this contact was imported along with the contact, then that name will be used.
2. If the user **id** has the current user in his Contacts, then the fields **first\_name**, **last\_name** will contain the name the user **id** supplied.
3. If none of the conditions 1,2 are observed, both fields are returned empty.