Poll

class pyrogram.types.Poll

A Poll.

Parameters
  • id (str) – Unique poll identifier.

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

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

  • total_voter_count (int) – Total number of users that voted in the poll.

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

  • is_anonymous (bool, optional) – True, if the poll is anonymous

  • type (str, optional) – Poll type, currently can be “regular” or “quiz”.

  • allows_multiple_answers (bool, optional) – True, if the poll allows multiple answers.

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