DBH
2737e17c67
feat: Add WhatsApp poll support (#248)
Implements issue #123 - WhatsApp Poll Support
## Gateway Protocol
- Add `poll` RPC method with params: to, question, options (2-12), selectableCount
## ActiveWebListener
- Add `sendPoll(to, poll)` method to interface
- Implementation uses Baileys poll message type
## CLI Command
- `clawdbot poll --to <jid> -q <question> -o <opt1> -o <opt2> [-s count]`
- Supports --dry-run, --json, --verbose flags
- Validates 2-12 options
## Changes
- src/gateway/protocol/schema.ts: Add PollParamsSchema
- src/gateway/protocol/index.ts: Export validator and types
- src/web/active-listener.ts: Add sendPoll to interface
- src/web/inbound.ts: Implement sendPoll using Baileys
- src/web/outbound.ts: Add sendPollWhatsApp function
- src/gateway/server-methods/send.ts: Add poll handler
- src/commands/poll.ts: New CLI command
- src/cli/program.ts: Register poll command
Closes #123
2026-01-06 04:44:15 +00:00
..
2026-01-04 03:37:08 +00:00
2026-01-04 03:33:07 +00:00
2026-01-04 14:38:51 +00:00
2026-01-04 03:33:07 +00:00
2026-01-04 03:33:07 +00:00
2026-01-04 03:37:08 +00:00
2026-01-04 14:38:51 +00:00
2025-12-27 01:41:43 +01:00
2026-01-04 14:38:51 +00:00
2026-01-06 03:25:32 +01:00
2026-01-04 15:13:23 +01:00
2025-12-17 17:01:10 +01:00
2026-01-04 14:38:51 +00:00
2026-01-06 03:25:32 +01:00
2026-01-06 05:41:24 +01:00
2026-01-01 20:10:50 +01:00
2026-01-05 02:06:18 +01:00
2026-01-04 14:38:51 +00:00
2026-01-04 21:56:16 +01:00
2026-01-04 14:38:51 +00:00
2026-01-04 14:38:51 +00:00
2025-12-18 23:32:36 +01:00
2026-01-04 14:38:51 +00:00
2026-01-04 00:54:44 +01:00
2026-01-04 00:54:44 +01:00
2026-01-04 14:38:51 +00:00
2026-01-04 14:38:51 +00:00
2025-12-26 01:34:46 +01:00
2025-12-26 00:50:46 +00:00
2025-12-18 23:56:08 +00:00
2026-01-05 01:27:13 +01:00
2026-01-05 01:27:13 +01:00
2025-12-23 00:28:55 +00:00
2026-01-04 19:08:22 +01:00
2026-01-06 04:44:15 +00:00
2025-11-26 00:53:53 +01:00
2025-11-26 00:53:53 +01:00
2026-01-05 01:27:13 +01:00
2026-01-03 23:57:17 +00:00
2025-11-26 00:53:53 +01:00
2025-11-26 00:53:53 +01:00