peyk.platforms.rubika.types.button_selection

Classes

ButtonSelection(selection_id, search_type, ...)

Represent the Rubika Bot API ButtonSelection type.

class peyk.platforms.rubika.types.button_selection.ButtonSelection(selection_id: str = '', search_type: str = 'None', get_type: str = 'Local', items: List[ButtonSelectionItem] = <factory>, is_multi_selection: bool = False, columns_count: str = '1', title: Optional[str] = None)[source]

Bases: object

Represent the Rubika Bot API ButtonSelection type.

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

selection_id: str = ''
search_type: str = 'None'
get_type: str = 'Local'
items: List[ButtonSelectionItem]
is_multi_selection: bool = False
columns_count: str = '1'
title: str | None = None
classmethod from_dict(data: dict | None) ButtonSelection | 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.