addContact
Add a contact. User-only.
Parameters
The identifier of a user to add as contact.
firstName?: string
A custom ame for the contact.
lastName?: string
A custom last name for the contact.
Whether the phone number of the current user should be shared with the contact.
Result
void
Syntax
// Required parameters only.
await client.addContact(userId);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.addContact(userId, { firstName, lastName, sharePhoneNumber });