Skip to main content
The Deno 2 Release Candidate is 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.147/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