telegram api method · layer 229 · #4b00e066
account.updateBusinessWorkHours
Specify a set of Telegram Business opening hours.
This info will be contained in userFull.business_work_hours.
definition
account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
business_work_hours | BusinessWorkHours | Opening hours (optional, if not set removes all opening hours). |
returns
errors (5)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 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. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 176–229
| id | layers |
|---|---|
| #4b00e066 | 176–229 |