Contact
This object represents a phone contact.
📝 Schema
Field | Type | Description |
---|---|---|
phone_number | string | Contact's phone number |
first_name | string | Contact's first name |
last_name | string | Optional. Contact's last name |
user_id | Integer | Optional. 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.