PollAnswer¶
- class telegram.PollAnswer(poll_id, user, option_ids, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
This object represents an answer of a user in a non-anonymous poll.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
poll_id
,user
andoption_ids
are equal.Available In
- Parameters:
user (
telegram.User
) – The user, who changed the answer to the poll.option_ids (Sequence[
int
]) –0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
Changed in version 20.0: Accepts any
collections.abc.Sequence
as input instead of just a list. The input is converted to a tuple.
- option_ids[source]¶
Identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
Changed in version 20.0: This attribute is now an immutable tuple.
- Type:
Tuple[
int
]