peyk.platforms.rubika.types.button_string_picker

Classes

ButtonStringPicker(items, default_value, title)

Represent the Rubika Bot API ButtonStringPicker type.

class peyk.platforms.rubika.types.button_string_picker.ButtonStringPicker(items: ~typing.List[str] = <factory>, default_value: str | None = None, title: str | None = None)[source]

Bases: object

Represent the Rubika Bot API ButtonStringPicker type.

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

items: List[str]
default_value: str | None = None
title: str | None = None
classmethod from_dict(data: dict | None) ButtonStringPicker | 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.