PollOption

class pyrogram.types.PollOption

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 (:obj:`~pyrogram.types.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 (:obj:`~pyrogram.types.User`, *optional*) – User who added the option; omitted if the option wasn’t added by a user after poll creation.

  • added_by_chat (:obj:`~pyrogram.types.Chat`, *optional*) – Chat that added the option; omitted if the option wasn’t added by a chat after poll creation.

  • addition_date (:py:obj:`~datetime.datetime`, *optional*) – Date the message was last edited.

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