• A Node 15 to 17 quick setup for the WhatsAppAPI

    Parameters

    • settings: WhatsAppAPIConstructorArguments

      The WhatsAppAPI arguments

    • fetch_ponyfill: {
          (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
          (input: string | URL | Request, init?: RequestInit): Promise<Response>;
      }

      The fetch ponyfill function to use (e.g. node-fetch or undici)

        • (input, init?): Promise<Response>
        • Parameters

          • input: URL | RequestInfo
          • Optionalinit: RequestInit

          Returns Promise<Response>

        • (input, init?): Promise<Response>
        • Parameters

          • input: string | URL | Request
          • Optionalinit: RequestInit

          Returns Promise<Response>

    Returns WhatsAppAPIConstructorArguments

    A WhatsAppAPI arguments object for Node 15 to 17

    Node 15 to 17 reached EoL and are no longer supported by the library