peyk.platforms.rubika.types.button_location

Classes

ButtonLocation([default_pointer_location, ...])

Represent the Rubika Bot API ButtonLocation type.

class peyk.platforms.rubika.types.button_location.ButtonLocation(default_pointer_location: Location | None = None, default_map_location: Location | None = None, type: str = 'Picker', title: str | None = None)[source]

Bases: object

Represent the Rubika Bot API ButtonLocation type.

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

default_pointer_location: Location | None = None
default_map_location: Location | None = None
type: str = 'Picker'
title: str | None = None
classmethod from_dict(data: dict | None) ButtonLocation | 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.