MadelineProtoDocs/old_docs/API_docs_v34/constructors/pollAnswerVoters.md
2020-06-16 17:50:25 +02:00

1007 B

title description image
pollAnswerVoters A poll answer, and how users voted on it https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: pollAnswerVoters

Back to constructors index

A poll answer, and how users voted on it

Attributes:

Name Type Required Description
chosen Bool Optional Whether we have chosen this answer
option bytes Yes The param that has to be passed to messages.sendVote.
voters int Yes How many users voted for this option

Type: PollAnswerVoters

Example:

$pollAnswerVoters = ['_' => 'pollAnswerVoters', 'chosen' => Bool, 'option' => 'bytes', 'voters' => int];

Or, if you're into Lua:

pollAnswerVoters={_='pollAnswerVoters', chosen=Bool, option='bytes', voters=int}