Specify a set of Telegram Business opening hours.
This info will be contained in userFull.business_work_hours
.
To remove all opening hours, invoke the method without setting the business_work_hours
field.
Note that the opening hours specified by the user must be appropriately validated and transformed before invoking the method, as specified here ».
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
business_work_hours | flags.0?BusinessWorkHours | Opening hours (optional, if not set removes all opening hours). |
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. |
Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.
Extended user info
When updating the local peer database », all fields from the newly received constructor take priority over the old constructor cached locally (including by removing fields that aren't set in the new constructor).