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

1.2 KiB

title description image
pollResults Results of poll https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: pollResults

Back to constructors index

Results of poll

Attributes:

Name Type Required Description
min Bool Optional Similar to min objects, used for poll constructors that are the same for all users so they don't have option chosen by the current user (you can use messages.getPollResults to get the full poll results).
results Array of PollAnswerVoters Optional Poll results
total_voters int Optional Total number of people that voted in the poll

Type: PollResults

Example:

$pollResults = ['_' => 'pollResults', 'min' => Bool, 'results' => [PollAnswerVoters, PollAnswerVoters], 'total_voters' => int];

Or, if you're into Lua:

pollResults={_='pollResults', min=Bool, results={PollAnswerVoters}, total_voters=int}