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