peyk.platforms.rubika.types.button_selection_item

Classes

ButtonSelectionItem([text, image_url, type])

Represent the Rubika Bot API ButtonSelectionItem type.

class peyk.platforms.rubika.types.button_selection_item.ButtonSelectionItem(text: str = '', image_url: str | None = None, type: str | None = None)[source]

Bases: object

Represent the Rubika Bot API ButtonSelectionItem type.

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

text: str = ''
image_url: str | None = None
type: str | None = None
classmethod from_dict(data: dict | None) ButtonSelectionItem | 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.