Phone API object

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Builds a phone object for a contact. A contact can contain multiple phones objects.

    Parameters

    • Optional phone: string

      Phone number, automatically populated with the wa_id value as a formatted phone number

    • Optional type: string

      Phone type. Standard Values: CELL, MAIN, IPHONE, HOME, WORK

    • Optional wa_id: string

      WhatsApp ID

    Returns Phone

Properties

phone?: string

The phone number of the contact

type?: string

The type of the phone number

wa_id?: string

The WhatsApp ID of the contact

Accessors

  • get _many(): true
  • Returns true

Methods

Generated using TypeDoc