businessWorkHours

Specifies a set of Telegram Business opening hours.

Constructor schema is available as of layer 176. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
open_now flags.0?true Ignored if set while invoking account.updateBusinessWorkHours, only returned by the server in userFull.business_work_hours, indicating whether the business is currently open according to the current time and the values in weekly_open and timezone.
timezone_id string An ID of one of the timezones returned by help.getTimezonesList.
The timezone ID is contained timezone.id, a human-readable, localized name of the timezone is available in timezone.name and the timezone.utc_offset field contains the UTC offset in seconds, which may be displayed in hh:mm format by the client together with the human-readable name (i.e. $name UTC -01:00).
weekly_open Vector<BusinessWeeklyOpen> A list of time intervals (max 28) represented by businessWeeklyOpen », indicating the opening hours of their business.

Type

BusinessWorkHours

Related pages

account.updateBusinessWorkHours

Specify a set of Telegram Business opening hours.
This info will be contained in userFull.business_work_hours.

To remove all opening hours, invoke the method without setting the business_work_hours field.

Note that the opening hours specified by the user must be appropriately validated and transformed before invoking the method, as specified here ».

userFull

Extended user info

When updating the local peer database », all fields from the newly received constructor take priority over the old constructor cached locally (including by removing fields that aren't set in the new constructor).

help.getTimezonesList

Returns timezone information that may be used elsewhere in the API, such as to set Telegram Business opening hours ».

timezone

Timezone information.

businessWeeklyOpen

A time interval, indicating the opening hours of a business.

Note that opening hours specified by the user must be appropriately validated and transformed before uploading them to the server, as specified here ».

Business

Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.