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

x/grammy_types/message.ts>PollOption

Type declarations of the Telegram Bot API.
Latest
interface PollOption
import { type PollOption } from "https://deno.land/x/grammy_types@v3.16.0/message.ts";

This object contains information about one answer option in a poll.

Properties

text: string

Option text, 1-100 characters

optional
text_entities: MessageEntity[]

Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts

voter_count: number

Number of users that voted for this option