peyk.platforms.bale.types.poll¶
Classes
|
Represent a Bale poll (undocumented, but present in the live API). |
- class peyk.platforms.bale.types.poll.Poll(id: Any = None, question: str = '', options: List[PollOption] | None = None, total_voter_count: int = 0, is_closed: bool = False, is_anonymous: bool = True, type: str = '', allows_multiple_answers: bool = False, allows_revoting: bool = False, members_only: bool = False)[source]¶
Bases:
objectRepresent a Bale poll (undocumented, but present in the live API).
A poll arrives either inside
Message.pollor on its own as thepollfield of anUpdate. The field set mirrors what the server sends.- id: Any = None¶
- question: str = ''¶
- options: List[PollOption] | None = None¶
- total_voter_count: int = 0¶
- is_closed: bool = False¶
- is_anonymous: bool = True¶
- type: str = ''¶
- allows_multiple_answers: bool = False¶
- allows_revoting: bool = False¶
- members_only: bool = False¶