@wppconnect-team/wppconnect - v2.4.0
    Preparing search index...

    The Node.js SDK re-exports the WAJS namespace for TypeScript. This reference describes types from WA-JS 4.8.0. For operations available on a connected Node.js client, see Whatsapp. For functions running inside WhatsApp Web, see the WA-JS browser API.

    Function offerGroup

    • Start a group call, with all members of a group or with a list of contacts

      When the group has a single other member, WhatsApp places a 1:1 call and the returned call has isGroup false.

      Parameters

      Returns Promise<CallModel>

      // Call all members of a group
      const call = await WPP.call.offerGroup('[group-id]@g.us');

      // Call a list of contacts
      const call = await WPP.call.offerGroup(
      ['[number1]@c.us', '[number2]@c.us'],
      { isVideo: true }
      );