Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>PollResults_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class PollResults_
extends _PollResults_
import { PollResults_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Results of poll

Constructors

new
PollResults_(params?: { min?: true; results?: Array<enums.PollAnswerVoters>; total_voters?: number; recent_voters?: Array<enums.Peer>; solution?: string; solution_entities?: Array<enums.MessageEntity>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
min: true

Similar 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).

optional
recent_voters: Array<enums.Peer>

IDs of the last users that recently voted in the poll

optional
results: Array<enums.PollAnswerVoters>

Poll results

optional
solution: string

Explanation of quiz solution

optional
solution_entities: Array<enums.MessageEntity>
optional
total_voters: number

Total number of people that voted in the poll

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc