@wppconnect/wa-js - v4.6.0
    Preparing search index...

    Function getSubscribers

    • Get subscribers of a newsletter

      Only an admin or the owner of the newsletter can list its subscribers — WhatsApp answers 401 Not Authorized for anyone else.

      Parameters

      • id: string

        The newsletter ID

      • Optionalcount: number

        How many subscribers to fetch. Defaults to the maximum WhatsApp allows, which is also the ceiling for any higher value.

      Returns Promise<false | NewsletterFollower[]>

      The subscriber list, or false when the request fails

      // Up to the maximum WhatsApp allows
      const subscribers = await WPP.newsletter.getSubscribers('[newsletter-id]@newsletter');

      // Only the first 10
      const subscribers = await WPP.newsletter.getSubscribers('[newsletter-id]@newsletter', 10);