telegram.PollAnswer

class telegram.PollAnswer(*args, **kwargs)[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 and option_ids are equal.

Parameters
  • poll_id (str) – Unique poll identifier.

  • 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.

poll_id[source]

Unique poll identifier.

Type

str

user[source]

The user, who changed the answer to the poll.

Type

telegram.User

option_ids[source]

Identifiers of answer options, chosen by the user.

Type

List[int]

classmethod de_json(data, bot)[source]

See telegram.TelegramObject.de_json().