account.updateBusinessWorkHours #

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 ».

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
business_work_hoursflags.0?BusinessWorkHoursOpening hours (optional, if not set removes all opening hours).

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400BUSINESS_WORK_HOURS_EMPTYNo work hours were specified.
400BUSINESS_WORK_HOURS_PERIOD_INVALIDThe specified work hours are invalid, see here » for the exact requirements.
400TIMEZONE_INVALIDThe specified timezone does not exist.

Telegram Business #

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.

userFull #

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).