Skip to content

PollInput

A poll of a new status. It ends expires_in seconds after the status is posted; the author and the users who voted are notified then.

object
options
required

The options, in order, as plain text; each one different from the others.

Array<string>
>= 2 items <= 4 items
expires_in
required

How long the poll takes votes, in seconds (5 minutes to 30 days).

integer
>= 300 <= 2592000
multiple

Whether a vote may choose several options.

boolean
hide_totals

Whether the votes of each option are hidden until the poll ends.

boolean

Example generated

{
"options": [
"example"
],
"expires_in": 1,
"multiple": true,
"hide_totals": true
}

For LLMs and coding agents:llms.txt,llms-full.txt, llms-small.txt

Analytics on this site