GramIO API Reference / gramio/dist / TelegramPollOption
Interface: TelegramPollOption
Defined in: @gramio/types/out/objects.d.ts:1797
This object contains information about one answer option in a poll.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
added_by_chat? | TelegramChat | Optional. Chat that added the option; omitted if the option wasn't added by a chat after poll creation | @gramio/types/out/objects.d.ts:1821 |
added_by_user? | TelegramUser | Optional. User who added the option; omitted if the option wasn't added by a user after poll creation | @gramio/types/out/objects.d.ts:1817 |
addition_date? | number | Optional. Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll | @gramio/types/out/objects.d.ts:1825 |
persistent_id | string | Unique identifier of the option, persistent on option addition and deletion | @gramio/types/out/objects.d.ts:1801 |
text | string | Option text, 1-100 characters | @gramio/types/out/objects.d.ts:1805 |
text_entities? | TelegramMessageEntity[] | Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts | @gramio/types/out/objects.d.ts:1809 |
voter_count | number | Number of users who voted for this option; may be 0 if unknown | @gramio/types/out/objects.d.ts:1813 |