peyk.platforms.rubika.types.bot_command

Classes

BotCommand([command, description])

Represent the Rubika Bot API BotCommand type.

class peyk.platforms.rubika.types.bot_command.BotCommand(command: str = '', description: str = '')[source]

Bases: object

Represent the Rubika Bot API BotCommand type.

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

command: str = ''
description: str = ''
classmethod from_dict(data: dict | None) BotCommand | 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.