PollOption#

class pyrogram.types.PollOption[source]#

Contains information about one answer option in a poll.

Parameters:
  • persistent_id (str) – Unique identifier of the option, persistent on option addition and deletion.

  • text (FormattedText) – Option text, 1-100 characters.

  • voter_count (int) – Number of users that voted for this option. Equals to 0 until you vote.

  • added_by_user (User, optional) – User who added the option; omitted if the option wasn’t added by a user after poll creation.

  • added_by_chat (Chat, optional) – Chat that added the option; omitted if the option wasn’t added by a chat after poll creation.

  • addition_date (datetime, optional) – Date the message was last edited.

  • data (bytes) – The data this poll option is holding.