• Send a create poll message

    Note: This only works for groups

    Parameters

    Returns Promise<SendMessageReturn>

    Example

    // 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,
    }
    );