Layer 220
constructor
businessWorkHours#8c92b098 flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector<BusinessWeeklyOpen> = BusinessWorkHours;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
OpenNow flags.0?true Ignored if set while invoking account. update Business Work Hours, only returned by the server in user Full. business_work_hours, indicating whether the business is currently open according to the current time and the values in weekly_open and timezone.
TimezoneId string An ID of one of the timezones returned by help. get Timezones List. 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 ).
WeeklyOpen Vector<BusinessWeeklyOpen> A list of time intervals (max 28) represented by business Weekly Open, indicating the opening hours of their business.

Gogram Example

// Creating BusinessWorkHours constructor
obj := &tg.BusinessWorkHours{
    TimezoneId: "...",
    WeeklyOpen: []tg.BusinessWeeklyOpen{&tg.BusinessWeeklyOpen{}},

    // Optional fields:
    // OpenNow: true,
}