Skip to content

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.

Documentation

Properties

PropertyTypeDescriptionDefined in
added_by_chat?TelegramChatOptional. 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?TelegramUserOptional. 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?numberOptional. 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_idstringUnique identifier of the option, persistent on option addition and deletion@gramio/types/out/objects.d.ts:1801
textstringOption 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_countnumberNumber of users who voted for this option; may be 0 if unknown@gramio/types/out/objects.d.ts:1813