Raw.BusinessWorkHours
Specifies a set of telegram business opening hours.
businessWorkHours#8c92b098 flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector<BusinessWeeklyOpen> = BusinessWorkHours;
export namespace Raw {
export class BusinessWorkHours {
constructor(params: {
openNow?: boolean;
timezoneId: string;
weeklyOpen: Array<Raw.TypeBusinessWeeklyOpen>;
}) {}
}
}
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x8c92b098
Property
openNow
: boolean or undefinedIgnored if set while invoking account.updatebusinessworkhours, only returned by the server in userfull.businessWorkHours, indicating whether the business is currently open according to the current time and the values in weeklyOpen and timezone.
timezoneId
: stringAn 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.utcOffset 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
: Array of Raw.TypeBusinessWeeklyOpenA list of time intervals (max 28) represented by businessweeklyopen, indicating the opening hours of their business.