Layer 220
method Users

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
BusinessWorkHours flags.0?BusinessWorkHours Opening hours (optional, if not set removes all opening hours).

Returns

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.

Gogram Example

// AccountUpdateBusinessWorkHours - using Params struct
result, err := client.AccountUpdateBusinessWorkHours(&tg.AccountUpdateBusinessWorkHoursParams{

    // Optional fields:
    // BusinessWorkHours: &tg.BusinessWorkHours{},
})
if err != nil {
    // handle error
}
// result is *tg.Bool