PollOption
This object contains information about one answer option in a poll.
fields
| field | type | required | description |
|---|---|---|---|
persistent_id | string | required | Unique identifier of the option, persistent on option addition and deletion |
text | string | required | Option text, 1-100 characters |
text_entities | MessageEntity[] | optional | Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts |
media | PollMedia | optional | Optional. Media added to the poll option |
voter_count | number | required | Number of users who voted for this option; may be 0 if unknown |
added_by_user | User | optional | Optional. User who added the option; omitted if the option wasn't added by a user after poll creation |
added_by_chat | Chat | optional | Optional. Chat that added the option; omitted if the option wasn't added by a chat after poll creation |
addition_date | number | optional | Optional. Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll |
import
import type { PollOption } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#polloption