Link Search Menu Expand Document

Method: account.updateBusinessWorkHours

Back to methods index

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:

NameTypeDescriptionRequired
business_work_hoursBusinessWorkHoursOpening 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, );