From 7588108ffa09772e60091c70ba0eb05ca867cfb2 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 22 Sep 2019 09:07:54 +0000 Subject: [PATCH] Adapt magnaluna --- docs | 2 +- magna.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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';