Skip to content
Discussion options

You must be logged in to vote

Hi @rorar — yes, OpenWA supports this natively. What you're describing maps to a WhatsApp poll, exposed via the POST /api/sessions/:sessionId/messages/send-poll endpoint.

For your use case:

{
  "chatId": "<recipient-group-or-contact-id>",
  "name": "Will you come?",
  "options": ["Yes 👍", "No 👎"],
  "allowMultipleAnswers": false
}
curl -X POST "$BASE/api/sessions/my-session/messages/send-poll" \
  -H "X-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "chatId": "<id>", "name": "Will you come?", "options": ["Yes 👍", "No 👎"] }'

Recipients tap an option to vote and the result tallies automatically inside WhatsApp — no need for the markdown [ ] checkbox style, which isn't …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rorar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants