Raw.PollResults
Results of poll
pollResults#7adf2420 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<Peer> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResults;
export namespace Raw {
export class PollResults {
constructor(params: {
min?: boolean;
results?: Array<Raw.TypePollAnswerVoters>;
totalVoters?: number;
recentVoters?: Array<Raw.TypePeer>;
solution?: string;
solutionEntities?: Array<Raw.TypeMessageEntity>;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x7adf2420
Property
min
: boolean or undefinedSimilar 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).
results
: Array of Raw.TypePollAnswerVoters or undefinedPoll results
totalVoters
: number or undefinedTotal number of people that voted in the poll
recentVoters
: Array of Raw.TypePeer or undefinedIds of the last users that recently voted in the poll
solution
: string or undefinedExplanation of quiz solution
solutionEntities
: Array of Raw.TypeMessageEntity or undefinedMessage entities for styled text in quiz solution