Optional
options: PoolMessageOptions// 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,
}
);
Send a create poll message
Note: This only works for groups