Phone

Phone

Phone API object

Constructor

new Phone(phoneopt, typeopt, wa_idopt)

Source:
Properties:
Name Type Attributes Description
phone String <optional>
The phone number of the contact
type String <optional>
The type of the phone number
wa_id String <optional>
The WhatsApp ID of the contact
_ String The type of the object, for internal use only
Builds a phone object for a contact. A contact can contain multiple phones objects.
Parameters:
Name Type Attributes Description
phone String <optional>
Phone number, automatically populated with the wa_id value as a formatted phone number
type String <optional>
Phone type. Standard Values: CELL, MAIN, IPHONE, HOME, WORK
wa_id String <optional>
WhatsApp ID