peyk.platforms.rubika.types.keypad_row

Classes

KeypadRow(buttons)

Represent the Rubika Bot API KeypadRow type.

class peyk.platforms.rubika.types.keypad_row.KeypadRow(buttons: List[Button] = <factory>)[source]

Bases: object

Represent the Rubika Bot API KeypadRow type.

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

buttons: List[Button]
to_dict() Dict[str, object][source]

Performs the to dict operation for the Rubika client.

Returns:

Result produced by the Rubika operation.

classmethod from_dict(data: dict | None) KeypadRow | 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.