BusinessOpeningHours

class telegram.BusinessOpeningHours(time_zone_name, opening_hours, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object describes the opening hours of a business.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their time_zone_name and opening_hours are equal.

Added in version 21.1.

Parameters:
time_zone_name[source]

Unique name of the time zone for which the opening hours are defined.

Type:

str

opening_hours[source]

List of time intervals describing business opening hours.

Type:

Sequence[telegram.BusinessOpeningHoursInterval]

classmethod de_json(data, bot=None)[source]

See telegram.TelegramObject.de_json().