telegram api method · layer 229 · #4b00e066

account.updateBusinessWorkHours

usable by users

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

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

returns

Bool

errors (5)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
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.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 176–229

idlayers
#4b00e066176–229