telegram.PollAnswer#
- class telegram.PollAnswer(*args, **kwargs)[source]#
Bases:
telegram.TelegramObjectThis 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,userandoption_idsare equal.- Parameters
user (
telegram.User) – The user, who changed the answer to the poll.option_ids (List[
int]) – 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.