Skip to main content

Contact

This object represents a phone contact.

📝 Schema

FieldTypeDescription
phone_numberstringContact's phone number
first_namestringContact's first name
last_namestringOptional. Contact's last name
user_idIntegerOptional. Contact's user identifier in Bale. 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.

⚙️ Get methods

getPhoneNumber()

Retrieves the contact's phone number.

$contactPhoneNumber = $contactObject->getPhoneNumber();

getFirstName()

Retrieves the contact's first name.

$contactFirstName = $contactObject->getFirstName();

getLastName()

Retrieves the contact's last name, if available.

$contactLastName = $contactObject->getLastName();

getUserId()

Retrieves the contact's user identifier in Bale, if available.

$contactUserId = $contactObject->getUserId();

➕ More

tip

For further information, refer to the official Bale documentation for more details.