Method: 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 ».
Parameters:
Name | Type | Description | Required |
---|---|---|---|
business_work_hours | BusinessWorkHours | Opening hours (optional, if not set removes all opening hours). | Optional |
Return type: Bool
Can userbots use this method: YES
Can bots use this method: NO
MadelineProto Example (now async for huge speed and parallelism!):
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->account->updateBusinessWorkHours(business_work_hours: $BusinessWorkHours, );