GroupChannelPoll extension

GroupChannelPoll

on

Methods

addPollOption({required int pollId, required String optionText}) Future<Poll>

Available on GroupChannel, provided by the GroupChannelPoll extension

Adds an option with optionText to this poll.
closePoll({required int pollId}) Future<Poll>

Available on GroupChannel, provided by the GroupChannelPoll extension

Closes this poll.
deletePoll({required int pollId}) Future<void>

Available on GroupChannel, provided by the GroupChannelPoll extension

Deletes this poll.
deletePollOption({required int pollId, required int pollOptionId}) Future<void>

Available on GroupChannel, provided by the GroupChannelPoll extension

Deletes this poll option.
getPollChangeLogsSinceTimestamp(int timestamp) Future<PollChangeLogs>

Available on GroupChannel, provided by the GroupChannelPoll extension

Requests poll change logs after given timestamp.
getPollChangeLogsSinceToken(String? token) Future<PollChangeLogs>

Available on GroupChannel, provided by the GroupChannelPoll extension

Requests poll change logs after given token.
updatePoll({required int pollId, required PollUpdateParams params}) Future<Poll>

Available on GroupChannel, provided by the GroupChannelPoll extension

Updates fields of this poll with given params.
updatePollOption({required int pollId, required int pollOptionId, required String optionText}) Future<Poll>

Available on GroupChannel, provided by the GroupChannelPoll extension

Updates optionText fields of this poll option.
votePoll({required int pollId, required List<int> pollOptionIds}) Future<PollVoteEvent>

Available on GroupChannel, provided by the GroupChannelPoll extension

Vote on pollOptionIds. This operation overrides previous vote actions, so to update previous vote, pass new pollOptionIds as parameter. To cancel votes, pass an empty list as pollOptionIds.