Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# BusinessOpeningHours

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

  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.

  Available In

  `telegram.ChatFullInfo.business_opening_hours`

  Added in version 21.1.

  Parameters:

    - time_zone_name (`str`) – Unique name of the time zone for which the opening hours are defined.

    - opening_hours (Sequence[`telegram.BusinessOpeningHoursInterval`]) – List of time intervals describing business opening hours.

  time_zone_name

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

    Type:

      `str`

  opening_hours

    List of time intervals describing business opening hours.

    Type:

      Sequence[`telegram.BusinessOpeningHoursInterval`]

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.