onPollVoted method

void onPollVoted(
  1. GroupChannel channel,
  2. PollVoteEvent event
)

Called when one or more vote is cast/canceled on a poll. The user should search for cached messages that contain this event's poll (PollVoteEvent.pollId, PollVoteEvent.messageId) and call Poll.applyPollVoteEvent on those messages.

Implementation

void onPollVoted(GroupChannel channel, PollVoteEvent event) {}