peyk.platforms.rubika.types.poll_status¶
Classes
|
Represent the Rubika Bot API |
- class peyk.platforms.rubika.types.poll_status.PollStatus(state: str = 'Open', selection_index: int = -1, percent_vote_options: List[int] | None = None, total_vote: int = 0, show_total_votes: bool = False)[source]¶
Bases:
objectRepresent the Rubika Bot API
PollStatustype.The class preserves the existing public fields and wire-format behavior.
- state: str = 'Open'¶
- selection_index: int = -1¶
- percent_vote_options: List[int] | None = None¶
- total_vote: int = 0¶
- show_total_votes: bool = False¶
- classmethod from_dict(data: dict | None) PollStatus | None[source]¶
Performs the from dict operation for the Rubika client.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the Rubika operation.