Poll
Class representing a poll.
A poll instance can be created using Poll.create with PollCreateParams and updated using GroupChannel.updatePoll with PollUpdateParams class. A poll can be attached to a message using UserMessageCreateParams.pollId.
Since
4.1.0
Properties
True if this poll allows multiple votes, false otherwise.
True if this poll allows user suggestion, false otherwise.
Options for this poll.
Indicates whether this poll is PollStatus.OPEN, or PollStatus.CLOSED
Contains optionIds which the current user voted on. If the current user has not voted, this list will be empty.
Total voter count.
Functions
Applies poll update event to this user message's poll.
Applies poll vote event to this user message's poll.
Serializes the Poll instance. This byte array can be stored in the database in your application. The instance can be restored by buildFromSerializedData.