peyk.platforms.rubika.types.button_textbox

Classes

ButtonTextbox([type_line, type_keypad, ...])

Represent the Rubika Bot API ButtonTextbox type.

class peyk.platforms.rubika.types.button_textbox.ButtonTextbox(type_line: str = 'SingleLine', type_keypad: str = 'String', place_holder: str | None = None, title: str | None = None, default_value: str | None = None)[source]

Bases: object

Represent the Rubika Bot API ButtonTextbox type.

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

type_line: str = 'SingleLine'
type_keypad: str = 'String'
place_holder: str | None = None
title: str | None = None
default_value: str | None = None
classmethod from_dict(data: dict | None) ButtonTextbox | 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.

to_dict() Dict[str, object][source]

Performs the to dict operation for the Rubika client.

Returns:

Result produced by the Rubika operation.