peyk.platforms.rubika.types.poll_status

Classes

PollStatus([state, selection_index, ...])

Represent the Rubika Bot API PollStatus type.

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: object

Represent the Rubika Bot API PollStatus type.

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.