-
-
Notifications
You must be signed in to change notification settings - Fork 725
Open
Labels
Description
Currently, the /api/{session}/send-poll-message endpoint only supports text-based poll options. However, WhatsApp now allows polls with image options (where each choice can include an image).
I’d like the /api/{session}/send-poll-message endpoint to support polls that include images for each option.
For example, extending the payload to allow an optional image field per choice, such as:
{
"phone": "5521999999999",
"isGroup": false,
"name": "Poll name",
"choices": [
{ "text": "Option 1", "imageBase64": "data:image/png;base64,iVBORw0KGg..." },
{ "text": "Option 2", "imageBase64":"data:image/png;base64,iVBORw0KGg..." },
{ "text": "Option 3", "imageBase64": "data:image/png;base64,iVBORw0KGg..." },
],
"options": {
"selectableCount": 1
}
}
Reactions are currently unavailable