pollAnswerVoters #

A poll answer, and how users voted on it

Layer 223

pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
chosenflags.0?trueWhether we have chosen this answer
correctflags.1?trueFor quizzes, whether the option we have chosen is correct
optionbytesThe param that has to be passed to messages.sendVote.
votersflags.2?intHow many users voted for this option
recent_votersflags.2?Vector<Peer>Peers of the most recent voters for this option; mutually exclusive with voters

Type #

PollAnswerVoters

messages.sendVote #

Vote in a poll

Starting from layer 159, the vote will be sent from the peer specified using messages.saveDefaultSendAs.

Before voting, clients should check that the user is actually allowed to vote: voting is not possible if the poll is closed, if it is subscriber-only » and the user is not an eligible subscriber, or if it is country-restricted » and the user's phone_country_iso2 » is not in the poll's allowed country list. See vote restrictions » for the full list of conditions.