-
-
Notifications
You must be signed in to change notification settings - Fork 68.8k
Feature Request: WhatsApp Poll Support #123
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Description
Add the ability to create WhatsApp polls programmatically via the CLI and gateway RPC. This enables bot tools to create interactive polls in group chats for decisions, voting, and engagement.
Use Case
- Creating polls for group decisions ("Lunch today?", "Meeting time preference?")
- Scheduled polls via cron jobs
- Interactive group engagement
Proposed Implementation
Gateway Protocol
Add poll RPC method with params:
{
to: string; // Recipient JID
question: string; // Poll question
options: string[]; // 2-12 options
selectableCount?: number; // How many options user can select (default: 1)
idempotencyKey: string;
}
ActiveWebListener
Add sendPoll(to, question, options, selectableCount?) method to interface, with implementation using Baileys:
sock.sendMessage(jid, {
poll: {
name: question,
values: options,
selectableCount: 1,
}
});
CLI Command
clawdis poll --to "GROUP_JID" -q "Question?" -o "Yes" -o "No" -o "Maybe"
Additional Context
Baileys already supports polls via the poll message type. This feature would expose that capability through the Clawdis gateway and CLI.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Type
Fields
Give feedbackNo fields configured for issues without a type.