@wppconnect/wa-js - v3.17.0
    Preparing search index...

    Function sendCreatePollMessage

    • Send a create poll message

      Note: This only works for groups

      Parameters

      Returns Promise<SendMessageReturn>

      // Single pool
      WPP.chat.sendCreatePollMessage(
      '[number]@g.us',
      'A poll name',
      ['Option 1', 'Option 2', 'Option 3']
      );

      // Selectable Count

      // Single pool
      WPP.chat.sendCreatePollMessage(
      '[number]@g.us',
      'A poll name',
      ['Option 1', 'Option 2', 'Option 3'],
      {
      selectableCount: 1,
      }
      );