peyk.platforms.telegram.types.poll_option_added

Classes

PollOptionAdded([option, voter_count])

Describes a service message about an option added to a poll.

class peyk.platforms.telegram.types.poll_option_added.PollOptionAdded(option: PollOption | None = None, voter_count: int = 0)[source]

Bases: object

Describes a service message about an option added to a poll.

Variables:
  • option_persistent_id – Unique identifier of the added option

  • option_text – Option text

  • poll_message – Message containing the poll to which the option was added, if known. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.

  • option_text_entities – Special entities that appear in the option_text

option: PollOption | None = None
voter_count: int = 0
classmethod from_dict(data: dict | None) PollOptionAdded | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.