vote:start

Start a poll in the channel.

Permissions

To vote on a poll you must use a valid OAuth token with the chat:poll_vote scope.

Arguments

  1. The poll's question.
  2. An array of possible options.
  3. The duration of the poll, in seconds.

Examples

Request

{
  "type": "method",
  "method": "vote:start",
  "arguments": ["Turkey or Ham?", ["Turkey", "Ham"], 30],
  "id": 3
}

Response

{
  "type": "reply",
  "error": null,
  "id": 3,
  "data": "Poll started."
}