telegram api method · layer 229 · #b86e380e

messages.getPollVotes

usable by users

Get poll results for non-anonymous polls

definition

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

returns

messages.VotesList

errors (5)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400MSG_ID_INVALIDInvalid message ID provided.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403BROADCAST_FORBIDDENChannel poll voters and reactions cannot be fetched to prevent deanonymization.
403POLL_VOTE_REQUIREDCast a vote in the poll before calling this method.

history

present in layers 109–229

idlayers
#b86e380e109–229