class pyrogram.Poll

A Poll.

  • id (str) – Unique poll identifier.

  • question (str) – Poll question, 1-255 characters.

  • options (List of PollOption) – List of poll options.

  • is_closed (bool) – True, if the poll is closed.

  • total_voters (int) – Total count of voters for this poll.

  • chosen_option (int, optional) – Index of your chosen option (0-9), None in case you haven’t voted yet.