peyk.platforms.rubika.types.poll

Classes

Poll([question, options, poll_status])

Represent the Rubika Bot API Poll type.

class peyk.platforms.rubika.types.poll.Poll(question: str = '', options: List[str] | None = None, poll_status: PollStatus | None = None)[source]

Bases: object

Represent the Rubika Bot API Poll type.

The class preserves the existing public fields and wire-format behavior.

question: str = ''
options: List[str] | None = None
poll_status: PollStatus | None = None
classmethod from_dict(data: dict | None) Poll | 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.