Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/3_types.ts>Poll

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface Poll
Re-export
import { type Poll } from "https://deno.land/x/mtkruto@0.1.157/3_types.ts";

A poll.

Properties

id: string
question: string
options: PollOption[]
totalVoterCount: number
isClosed: boolean
isAnonymous: boolean
type: "regular" | "quiz"
optional
allowMultipleAnswers: boolean
optional
correctOptionIndex: number
optional
explanation: string
optional
explanationEntities: MessageEntity[]
optional
openPeriod: number
optional
closeDate: Date