You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 |
11 months ago | |
|---|---|---|
| .. | ||
| protocol | 11 months ago | |
| server-methods | 11 months ago | |
| auth.test.ts | 11 months ago | |
| auth.ts | 11 months ago | |
| call.test.ts | 11 months ago | |
| call.ts | 11 months ago | |
| chat-attachments.test.ts | 12 months ago | |
| chat-attachments.ts | 12 months ago | |
| client.maxpayload.test.ts | 11 months ago | |
| client.test.ts | 11 months ago | |
| client.ts | 11 months ago | |
| config-reload.test.ts | 11 months ago | |
| config-reload.ts | 11 months ago | |
| control-ui.ts | 11 months ago | |
| hooks-mapping.test.ts | 11 months ago | |
| hooks-mapping.ts | 11 months ago | |
| hooks.test.ts | 11 months ago | |
| hooks.ts | 11 months ago | |
| net.ts | 11 months ago | |
| server-bridge-subscriptions.test.ts | 11 months ago | |
| server-bridge-subscriptions.ts | 11 months ago | |
| server-bridge.ts | 11 months ago | |
| server-browser.ts | 11 months ago | |
| server-chat-registry.test.ts | 11 months ago | |
| server-chat.ts | 11 months ago | |
| server-constants.ts | 11 months ago | |
| server-discovery.ts | 11 months ago | |
| server-http.ts | 11 months ago | |
| server-methods.ts | 11 months ago | |
| server-providers.ts | 11 months ago | |
| server-shared.ts | 11 months ago | |
| server-utils.test.ts | 11 months ago | |
| server-utils.ts | 11 months ago | |
| server.agent.test.ts | 11 months ago | |
| server.auth.test.ts | 11 months ago | |
| server.chat.test.ts | 11 months ago | |
| server.cron.test.ts | 11 months ago | |
| server.health.test.ts | 11 months ago | |
| server.hooks.test.ts | 11 months ago | |
| server.misc.test.ts | 11 months ago | |
| server.models-voicewake.test.ts | 11 months ago | |
| server.node-bridge.test.ts | 11 months ago | |
| server.providers.test.ts | 11 months ago | |
| server.reload.test.ts | 11 months ago | |
| server.sessions-send.test.ts | 11 months ago | |
| server.sessions.test.ts | 11 months ago | |
| server.ts | 11 months ago | |
| session-utils.test.ts | 11 months ago | |
| session-utils.ts | 11 months ago | |
| test-helpers.ts | 11 months ago | |
| ws-log.test.ts | 11 months ago | |
| ws-log.ts | 11 months ago | |
| ws-logging.ts | 11 months ago | |