peyk.platforms.rubika.types.keypad

Classes

Keypad(rows, resize_keyboard, one_time_keyboard)

Represent the Rubika Bot API Keypad type.

class peyk.platforms.rubika.types.keypad.Keypad(rows: List[KeypadRow] = <factory>, resize_keyboard: Optional[bool] = None, one_time_keyboard: Optional[bool] = None)[source]

Bases: object

Represent the Rubika Bot API Keypad type.

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

rows: List[KeypadRow]
resize_keyboard: bool | None = None
one_time_keyboard: bool | None = None
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) Keypad | 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.