account.UpdateBusinessWorkHours

class pyrogram.raw.functions.account.UpdateBusinessWorkHours

Specify a set of Telegram Business opening hours. This info will be contained in userFull.business_work_hours.

Details:
  • Layer: 223

  • ID: 4B00E066

Parameters:
business_work_hours (BusinessWorkHours, optional):

Opening hours (optional, if not set removes all opening hours).

Returns:

bool

TL Schema

account.updateBusinessWorkHours#4b00e066
flags:#
business_work_hours:flags.0?BusinessWorkHours

= Bool

Parameter Tree

UpdateBusinessWorkHours
└── business_work_hoursBusinessWorkHours (optional)
├── open_nowtrue (optional)
├── timezone_idstring
└── weekly_openVector < BusinessWeeklyOpen >
├── start_minuteint
└── end_minuteint

Example

await app.invoke(
    UpdateBusinessWorkHours(
        business_work_hours=BusinessWorkHours(
            open_now=None,
            timezone_id="text",
            weekly_open=[
                    BusinessWeeklyOpen(
                        start_minute=0,
                        end_minute=0
                    )
                ]
        ),
    )
)