class Contact

This object represents a phone contact.

Methods

__construct(string $phone_number, string $first_name, string|null $last_name = null, int|null $user_id = null, string|null $vcard = null)

No description

string
getPhoneNumber()

Contact's phone number.

string
getFirstName()

Contact's first name.

string|null
getLastName()

Optional. Contact's last name.

int|null
getUserId()

Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.

string|null
getVcard()

Optional. Additional data about the contact in the form of a vCard.

Details

at line 17
__construct(string $phone_number, string $first_name, string|null $last_name = null, int|null $user_id = null, string|null $vcard = null)

No description

Parameters

string $phone_number
string $first_name
string|null $last_name
int|null $user_id
string|null $vcard

at line 29
string getPhoneNumber()

Contact's phone number.

Return Value

string

at line 37
string getFirstName()

Contact's first name.

Return Value

string

at line 45
string|null getLastName()

Optional. Contact's last name.

Return Value

string|null

at line 53
int|null getUserId()

Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.

Return Value

int|null

at line 61
string|null getVcard()

Optional. Additional data about the contact in the form of a vCard.

Return Value

string|null