PollAnswer
This object represents an answer of a user in a non-anonymous poll.
fields
| field | type | required | description |
|---|---|---|---|
poll_id | string | required | Unique poll identifier |
voter_chat | Chat | optional | Optional. The chat that changed the answer to the poll, if the voter is anonymous |
user | User | optional | Optional. The user that changed the answer to the poll, if the voter isn't anonymous |
option_ids | number[] | required | 0-based identifiers of chosen answer options. May be empty if the vote was retracted. |
option_persistent_ids | string[] | required | Persistent identifiers of the chosen answer options. May be empty if the vote was retracted. |
import
import type { PollAnswer } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#pollanswer