UpdateBusinessWorkHoursRequest

Both users and bots may be able to use this request. See code examples.

---functions---
account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool

Returns

Bool

This type has no instances available.

Parameters

business_work_hoursBusinessWorkHoursThis argument defaults to None and can be omitted.

Known RPC errors

This request can't cause any RPC error as far as we know.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.account.UpdateBusinessWorkHoursRequest(
        business_work_hours=types.BusinessWorkHours(
            timezone_id='some string here',
            weekly_open=[types.BusinessWeeklyOpen(
                start_minute=42,
                end_minute=42
            )],
            open_now=True
        )
    ))
    print(result)