messages.getPollVotes #

Get poll results for non-anonymous polls

Layer 223

messages.votesList#4899484e flags:# count:int votes:Vector<MessagePeerVote> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.VotesList;
---functions---
messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerChat where the poll was sent
idintMessage ID
optionflags.0?bytesGet only results for the specified poll option
offsetflags.1?stringOffset for results, taken from the next_offset field of messages.votesList, initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in messages.votesList if it is empty, to avoid an infinite loop.
limitintNumber of results to return

Result #

messages.VotesList

Only users can use this method #

Possible errors #

CodeTypeDescription
403BROADCAST_FORBIDDENChannel poll voters and reactions cannot be fetched to prevent deanonymization.
400MSG_ID_INVALIDInvalid message ID provided.
403POLL_VOTE_REQUIREDCast a vote in the poll before calling this method.

messages.votesList #

How users voted in a poll