Available types

PollOption

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

fields

fieldtyperequireddescription
persistent_idstringrequiredUnique identifier of the option, persistent on option addition and deletion
textstringrequiredOption text, 1-100 characters
text_entitiesMessageEntity[]optionalOptional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts
mediaPollMediaoptionalOptional. Media added to the poll option
voter_countnumberrequiredNumber of users who voted for this option; may be 0 if unknown
added_by_userUseroptionalOptional. User who added the option; omitted if the option wasn't added by a user after poll creation
added_by_chatChatoptionalOptional. Chat that added the option; omitted if the option wasn't added by a chat after poll creation
addition_datenumberoptionalOptional. Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll

import

types.ts
import type { PollOption } from "@yaebal/types";

used by

types