PollOption¶
- class telegram.PollOption(text, voter_count, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
This object contains information about one answer option in a poll.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
text
andvoter_count
are equal.- Parameters:
Available In
- MAX_LENGTH = 100[source]¶
telegram.constants.PollLimit.MAX_OPTION_LENGTH
New in version 20.0.
- MIN_LENGTH = 1[source]¶
telegram.constants.PollLimit.MIN_OPTION_LENGTH
New in version 20.0.