PollOption¶
- class aiogram.types.poll_option.PollOption(*, text: str, voter_count: int, text_entities: list[MessageEntity] | None = None, **extra_data: Any)[source]¶
This object contains information about one answer option in a poll.
Source: https://core.telegram.org/bots/api#polloption
- text: str¶
Option text, 1-100 characters
- voter_count: int¶
Number of users that voted for this option
- model_post_init(context: Any, /) None ¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- text_entities: list[MessageEntity] | None¶
Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts