Bugfix
This commit is contained in:
parent
04ac167260
commit
811204e62c
@ -224,7 +224,7 @@ Propic art by @magnaluna on deviantart.", 'parse_mode' => 'Markdown']);
|
||||
$calls[$update['update']['phone_call']->getOtherID()] = $update['update']['phone_call'];
|
||||
|
||||
try {
|
||||
$times[$update['update']['phone_call']->getOtherID()] = [time(), $MadelineProto->messages->sendMessage(['peer' => $update['update']['phone_call']->getOtherID(), 'message' => 'Total running calls: '.count($calls).PHP_EOL.PHP_EOL.$update['update']['phone_call']->getDebugString()])['id']];
|
||||
$times[$update['update']['phone_call']->getOtherID()] = [time(), $MadelineProto->messages->sendMessage(['peer' => $update['update']['phone_call']->getOtherID(), 'message' => 'Total running calls: '.count($calls).PHP_EOL.PHP_EOL])['id']];
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
}
|
||||
$update['update']['phone_call']->playOnHold($songs);
|
||||
|
@ -270,7 +270,7 @@ trait AuthKeyHandler
|
||||
\danog\MadelineProto\Logger::log([sprintf(\danog\MadelineProto\Lang::$current_lang['call_set_rating'], $call['id'])], \danog\MadelineProto\Logger::VERBOSE);
|
||||
$this->method_call('phone.setCallRating', ['peer' => $call, 'rating' => $rating['rating'], 'comment' => $rating['comment']], ['datacenter' => $this->datacenter->curdc]);
|
||||
}
|
||||
if ($need_debug && time() - $this->calls[$call['id']]->whenCreated() > 10) {//} && isset($this->calls[$call['id']]->storage['not_modified'])) {
|
||||
if ($need_debug) {//} && isset($this->calls[$call['id']]->storage['not_modified'])) {
|
||||
\danog\MadelineProto\Logger::log([sprintf(\danog\MadelineProto\Lang::$current_lang['call_debug_saving'], $call['id'])], \danog\MadelineProto\Logger::VERBOSE);
|
||||
$this->method_call('phone.saveCallDebug', ['peer' => $call, 'debug' => $this->calls[$call['id']]->getDebugLog()], ['datacenter' => $this->datacenter->curdc]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user