Class: Poll

Poll(pollName, pollOptions, options)

Represents a Poll on WhatsApp

Constructor

new Poll(pollName, pollOptions, options)

Parameters:
Name Type Description
pollName string
pollOptions Array.<string>
options PollSendOptions
Source:

Members

options :PollSendOptions

The send options for the poll

Type:
Source:

pollName :string

The name of the poll

Type:
  • string
Source:

pollOptions :Array.<{name: string, localId: number}>

The array of poll options

Type:
  • Array.<{name: string, localId: number}>
Source: