Layer 227
method Users
account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool;

Parameters

Name Type Description
BusinessWorkHours flags .0? BusinessWorkHours Opening hours (optional, if not set removes all opening hours).

Returns

Bool

Gogram Example

// AccountUpdateBusinessWorkHours - positional arguments
result, err := client.AccountUpdateBusinessWorkHours(nil)
if err != nil {
    // handle error
}
// result is *tg.Bool

Possible Errors

Code Type Description
400 BUSINESS_WORK_HOURS_EMPTY No work hours were specified.
400 BUSINESS_WORK_HOURS_PERIOD_INVALID The specified work hours are invalid, see here for the exact requirements.
400 TIMEZONE_INVALID The specified timezone does not exist.