Contact
class Contact
This object represents a phone contact.
Methods
No description
Contact's phone number.
Contact's first name.
Optional. Contact's last name.
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.
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
at line 29
string
getPhoneNumber()
Contact's phone number.
at line 37
string
getFirstName()
Contact's first name.
at line 45
string|null
getLastName()
Optional. Contact's last name.
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.
at line 61
string|null
getVcard()
Optional. Additional data about the contact in the form of a vCard.