Link Search Menu Expand Document

Constructor: pollResults

Back to constructors index

Results of poll

Attributes:

NameTypeRequiredDescription
minBoolOptionalSimilar to min objects, used for poll constructors that are the same for all users so they don’t have the option chosen by the current user (you can use messages.getPollResults to get the full poll results).
resultsArray of PollAnswerVotersOptionalPoll results
total_votersintOptionalTotal number of people that voted in the poll
recent_votersArray of PeerOptionalIDs of the last users that recently voted in the poll
solutionstringOptionalExplanation of quiz solution
solution_entitiesArray of MessageEntityOptionalMessage entities for styled text in quiz solution

Type: PollResults

Example:

$pollResults = ['_' => 'pollResults', 'min' => Bool, 'results' => [PollAnswerVoters, PollAnswerVoters], 'total_voters' => int, 'recent_voters' => [Peer, Peer], 'solution' => 'string', 'solution_entities' => [MessageEntity, MessageEntity]];