Skip to content

poll choices with images #2341

@ryoga86

Description

@ryoga86

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
}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions