Passa al contenuto principale

Message polls

Actions in the category "Message polls".

Create poll​

Creates a new poll message in a channel using simple answer inputs.

Required permissions: Create polls.

Inputs

NameTypeRequiredDetails
ChannelServer channelYesThe channel where the poll will be posted.
QuestionTextYesThe poll question (max 300 characters). Length: 1 to 300 characters.
AnswersList of Poll answerYesList of poll answers (1-10). Items: 1 to 10.
Duration (hours)Whole numberNoHow long the poll stays open in hours (1-768). Value: 1 to 768. Default: 24.
Allow Multiple AnswersYes/NoNoWhether voters may select more than one answer. Default: No.

Outputs

NameTypeDetails
Poll MessageMessageThe poll message that was sent.

Send poll to channel​

Sends a fully built poll object to a channel without any other message content.

Required permissions: Create polls.

Inputs

NameTypeRequiredDetails
ChannelServer channelYesThe channel where the poll will be posted.
PollPollYesThe poll definition to send.

Outputs

NameTypeDetails
Poll MessageMessageThe poll message that was sent.

End poll immediately​

Closes a poll right away, regardless of its scheduled duration.

Required permissions: Manage messages.

Inputs

NameTypeRequiredDetails
Poll MessageMessageYesThe message containing the poll to end.

Outputs

NameTypeDetails
Poll MessageMessageThe poll message after being closed.

Fetch poll voters​

Returns the users who voted for a specific answer in a poll.

Required permissions: Read message history.

Inputs

NameTypeRequiredDetails
Poll MessageMessageYesThe message containing the poll.
Answer IDWhole numberYesThe ID of the answer to query (1-based). Minimum: 1.
LimitWhole numberNoMaximum number of voters to fetch (1-100). Value: 1 to 100. Default: 100.

Outputs

NameTypeDetails
VotersList of UserUsers who voted for the answer.
Need more help?
Can't find what you're looking for? Our team is happy to help.