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

x/mtkruto/types/1_poll.ts>Poll

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface Poll
import { type Poll } from "https://deno.land/x/mtkruto@0.1.141/types/1_poll.ts";

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