Naar de inhoud
Alle hulpmiddelen

whatsapp_send_poll

WhatsApp · macOS · Windows

Effect: verzenden. Status: voorwaardelijk beschikbaar.

‘Voorwaardelijke beschikbaarheid’ betekent dat het hulpmiddel kan afhangen van versie, platform, machtigingen, account of configuratie. Het is niet in elke installatie actief.

macOS

Doel

Verstuurt een poll naar een WhatsApp-chat/-groep — iedereen in de chat ziet hem. chat_id MOET uit whatsapp_list_chats / whatsapp_list_groups komen. Het is een schrijfbewerking: de eerste aanroep (confirm=false) geeft een voorbeeld terug zonder te verzenden; stel confirm=true in om echt te verzenden. Geef 2–12 opties; stel multi>1 in om meerdere keuzes toe te staan. Lees de resultaten later met whatsapp_read_poll (waarvan het aantal indicatief is — zie die tool).

Vereiste invoer

De namen blijven exact zoals het hulpmiddel ze vereist. De canonieke technische definities in het Engels staan in het uitklapbare schema hieronder.

Machtigingen en bevestiging

Het schema bevat een expliciete bevestigingsparameter. Controleer het voorbeeld en autoriseer de echte bewerking volgens het platformcontract.

Canoniek technisch schema in het Engels — macOS
{
  "properties": {
    "account": {
      "description": "Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.",
      "type": "string"
    },
    "chat_id": {
      "description": "Chat/group JID from whatsapp_list_chats/whatsapp_list_groups",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to actually send. Without it, returns a preview.",
      "type": "boolean"
    },
    "multi": {
      "description": "Max options a voter may pick (1 = single-select, default 1)",
      "type": "integer"
    },
    "options": {
      "description": "2–12 poll options",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "question": {
      "description": "Poll question",
      "type": "string"
    }
  },
  "required": [
    "chat_id",
    "question",
    "options"
  ],
  "type": "object"
}

Documentatievoorbeeld

Documentatievoorbeeld voor whatsapp_send_poll. Voer dit voorbeeld niet uit. De getoonde argumenten verwijzen naar fictieve gegevens; zoek vóór een echte aanroep de werkelijke identificatoren op en vraag toestemming.

{
  "chat_id": "12025550123@s.whatsapp.net",
  "confirm": false,
  "options": [
    "Tuesday",
    "Wednesday"
  ],
  "question": "Which day works for the planning meeting?"
}

Windows

Doel

Verstuurt een poll naar een WhatsApp-chat/-groep — iedereen in de chat ziet hem. chat_id MOET uit whatsapp_list_chats / whatsapp_list_groups komen. Het is een schrijfbewerking: de eerste aanroep (confirm=false) geeft een voorbeeld terug zonder te verzenden; stel confirm=true in om echt te verzenden. Geef 2–12 opties; stel multi>1 in om meerdere keuzes toe te staan. Lees de resultaten later met whatsapp_read_poll (waarvan het aantal indicatief is — zie die tool).

Vereiste invoer

De namen blijven exact zoals het hulpmiddel ze vereist. De canonieke technische definities in het Engels staan in het uitklapbare schema hieronder.

Machtigingen en bevestiging

Het schema bevat een expliciete bevestigingsparameter. Controleer het voorbeeld en autoriseer de echte bewerking volgens het platformcontract.

Canoniek technisch schema in het Engels — Windows
{
  "properties": {
    "account": {
      "description": "Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.",
      "type": "string"
    },
    "chat_id": {
      "description": "Chat/group JID from whatsapp_list_chats/whatsapp_list_groups",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to actually send. Without it, returns a preview.",
      "type": "boolean"
    },
    "multi": {
      "description": "Max options a voter may pick (1 = single-select, default 1)",
      "type": "integer"
    },
    "options": {
      "description": "2–12 poll options",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "question": {
      "description": "Poll question",
      "type": "string"
    }
  },
  "required": [
    "chat_id",
    "question",
    "options"
  ],
  "type": "object"
}

Documentatievoorbeeld

Documentatievoorbeeld voor whatsapp_send_poll. Voer dit voorbeeld niet uit. De getoonde argumenten verwijzen naar fictieve gegevens; zoek vóór een echte aanroep de werkelijke identificatoren op en vraag toestemming.

{
  "chat_id": "12025550123@s.whatsapp.net",
  "confirm": false,
  "options": [
    "Tuesday",
    "Wednesday"
  ],
  "question": "Which day works for the planning meeting?"
}