diff --git a/docs b/docs index 0fc9b14f..fe346258 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 0fc9b14f85e87ca38c3ce01ba6e4a43aaa3707f4 +Subproject commit fe346258733323e5173e674f15059dea1a1eb880 diff --git a/magna.php b/magna.php index 722b6b85..4a77b8af 100755 --- a/magna.php +++ b/magna.php @@ -63,9 +63,8 @@ class MessageLoop extends ResumableSignalLoop return; } } - try { - yield $MadelineProto->messages->editMessage(['id' => $this->call->mId, 'peer' => $this->call->getOtherID(), 'message' => 'Total running calls: '.count($MadelineProto->getEventHandler()->calls).PHP_EOL.PHP_EOL.$this->call->getDebugString()]); + yield $MadelineProto->messages->editMessage(['id' => $this->call->mId, 'peer' => $this->call->getOtherID(), 'message' => 'Total running calls: '.count(yield $MadelineProto->getEventHandler()->calls).PHP_EOL.PHP_EOL.$this->call->getDebugString()]); } catch (\danog\MadelineProto\RPCErrorException $e) { $MadelineProto->logger($e); } @@ -151,6 +150,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler private $statusLoops = []; private $programmed_call; private $my_users; + public $calls = []; public function configureCall($call) { include 'songs.php';