> ## Documentation Index
> Fetch the complete documentation index at: https://openclaw.veiseule.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# पोल

# पोल

## समर्थित चैनल

* WhatsApp (वेब चैनल)
* Discord
* MS Teams (Adaptive Cards)

## CLI

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
# WhatsApp
openclaw message poll --target +15555550123 \
  --poll-question "Lunch today?" --poll-option "Yes" --poll-option "No" --poll-option "Maybe"
openclaw message poll --target 123456789@g.us \
  --poll-question "Meeting time?" --poll-option "10am" --poll-option "2pm" --poll-option "4pm" --poll-multi

# Discord
openclaw message poll --channel discord --target channel:123456789 \
  --poll-question "Snack?" --poll-option "Pizza" --poll-option "Sushi"
openclaw message poll --channel discord --target channel:123456789 \
  --poll-question "Plan?" --poll-option "A" --poll-option "B" --poll-duration-hours 48

# MS Teams
openclaw message poll --channel msteams --target conversation:19:abc@thread.tacv2 \
  --poll-question "Lunch?" --poll-option "Pizza" --poll-option "Sushi"
```

विकल्प:

* `--channel`: `whatsapp` (डिफ़ॉल्ट), `discord`, या `msteams`
* `--poll-multi`: कई विकल्प चुनने की अनुमति
* `--poll-duration-hours`: केवल Discord (छोड़ने पर डिफ़ॉल्ट 24)

## Gateway RPC

विधि: `poll`

पैरामीटर:

* `to` (string, आवश्यक)
* `question` (string, आवश्यक)
* `options` (string\[], आवश्यक)
* `maxSelections` (number, वैकल्पिक)
* `durationHours` (number, वैकल्पिक)
* `channel` (string, वैकल्पिक, डिफ़ॉल्ट: `whatsapp`)
* `idempotencyKey` (string, आवश्यक)

## चैनल अंतर

* WhatsApp: 2-12 विकल्प, `maxSelections` विकल्पों की संख्या के भीतर होना चाहिए, `durationHours` को अनदेखा करता है।
* Discord: 2-10 विकल्प, `durationHours` को 1-768 घंटे (डिफ़ॉल्ट 24) तक सीमित किया जाता है। `maxSelections > 1` मल्टी-सेलेक्ट सक्षम करता है; Discord सख्त चयन संख्या का समर्थन नहीं करता।
* MS Teams: Adaptive Card पोल्स (OpenClaw-प्रबंधित)। कोई नेटिव पोल API नहीं; `durationHours` को अनदेखा किया जाता है।

## एजेंट टूल (संदेश)

`message` टूल का उपयोग `poll` क्रिया के साथ करें (`to`, `pollQuestion`, `pollOption`, वैकल्पिक `pollMulti`, `pollDurationHours`, `channel`)।

नोट: Discord में “ठीक N चुनें” मोड नहीं है; `pollMulti` मल्टी-सेलेक्ट से मैप होता है।
Teams पोल्स Adaptive Cards के रूप में रेंडर किए जाते हैं और वोट्स रिकॉर्ड करने के लिए गेटवे का ऑनलाइन रहना आवश्यक है, जो `~/.openclaw/msteams-polls.json` में सहेजे जाते हैं।
