peyk.platforms.rubika.types.button_calendar

Classes

ButtonCalendar([default_value, type, ...])

Represent the Rubika Bot API ButtonCalendar type.

class peyk.platforms.rubika.types.button_calendar.ButtonCalendar(default_value: str | None = None, type: str = 'DatePersian', min_year: str = '1300', max_year: str = '1450', title: str = '')[source]

Bases: object

Represent the Rubika Bot API ButtonCalendar type.

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

default_value: str | None = None
type: str = 'DatePersian'
min_year: str = '1300'
max_year: str = '1450'
title: str = ''
classmethod from_dict(data: dict | None) ButtonCalendar | 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.