Poll
Describes a poll.
This is an alias for the PollUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "poll" | |
id | string | Unique poll identifier |
question | string | Poll question; 1-300 characters |
options | List of poll answer options | |
totalVoterCount | number | Total number of voters, participating in the poll |
recentVoterUserIds | number[] | User identifiers of recent voters, if the poll is non-anonymous |
isAnonymous | boolean | True, if the poll is anonymous |
type | Type of the poll | |
openPeriod | number | Amount of time the poll will be active after creation, in seconds |
closeDate | number | Point in time (Unix timestamp) when the poll will automatically be closed |
isClosed | boolean | True, if the poll is closed |