Available types

PollAnswer

This object represents an answer of a user in a non-anonymous poll.

fields

fieldtyperequireddescription
poll_idstringrequiredUnique poll identifier
voter_chatChatoptionalOptional. The chat that changed the answer to the poll, if the voter is anonymous
userUseroptionalOptional. The user that changed the answer to the poll, if the voter isn't anonymous
option_idsnumber[]required0-based identifiers of chosen answer options. May be empty if the vote was retracted.
option_persistent_idsstring[]requiredPersistent identifiers of the chosen answer options. May be empty if the vote was retracted.

import

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

used by

types