Apply fixes from StyleCI
This commit is contained in:
parent
d5c67a1ecc
commit
fba1c8e623
@ -177,7 +177,6 @@ Propic art by @magnaluna on deviantart.", 'parse_mode' => 'Markdown']);
|
||||
$call->playOnHold($songs);
|
||||
$calls[$call->getOtherID()] = $call;
|
||||
$times[$call->getOtherID()] = [time(), $MadelineProto->messages->sendMessage(['peer' => $call->getOtherID(), 'message' => 'Total running calls: '.count($calls).PHP_EOL.PHP_EOL.$call->getDebugString()])['id']];
|
||||
|
||||
}
|
||||
if (isset($update['update']['message']['message']) && strpos($update['update']['message']['message'], '/program') === 0) {
|
||||
$time = strtotime(str_replace('/program ', '', $update['update']['message']['message']));
|
||||
@ -190,7 +189,8 @@ Propic art by @magnaluna on deviantart.", 'parse_mode' => 'Markdown']);
|
||||
}
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
try {
|
||||
if ($e->rpc === 'USER_PRIVACY_RESTRICTED') { $e = 'Please disable call privacy settings to make me call you';
|
||||
if ($e->rpc === 'USER_PRIVACY_RESTRICTED') {
|
||||
$e = 'Please disable call privacy settings to make me call you';
|
||||
} elseif (strpos($e->rpc, 'FLOOD_WAIT_') === 0) {
|
||||
$t = str_replace('FLOOD_WAIT_', '', $e->rpc);
|
||||
$MadelineProto->programmed_call[] = [$update['update']['message']['from_id'], time() + 1 + $t];
|
||||
|
Loading…
x
Reference in New Issue
Block a user