Layer 220
AccountUpdateBusinessWorkHours
Specify a set of Telegram Business opening hours. This info will be contained in user Full. business_work_hours.
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
BoolPossible 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