PollAnswer#
- class aiogram.types.poll_answer.PollAnswer(*, poll_id: str, option_ids: List[int], voter_chat: Chat | None = None, user: User | None = None, **extra_data: Any)[source]#
This object represents an answer of a user in a non-anonymous poll.
Source: https://core.telegram.org/bots/api#pollanswer
- poll_id: str#
Unique poll identifier
- option_ids: List[int]#
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(_ModelMetaclass__context: Any) None #
We need to both initialize private attributes and call the user-defined model_post_init method.