diff --git a/docs b/docs index ddb2e4f76..8f6784adf 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit ddb2e4f76938b69ceac6e4615901c642accae1ef +Subproject commit 8f6784adf5bca1dbab98ba1ec69ab52050633ca1 diff --git a/magna.php b/magna.php index c1959b547..023d724ed 100755 --- a/magna.php +++ b/magna.php @@ -161,7 +161,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler $call->playOnHold($songs); if ($call->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_INCOMING) { if ($call->accept() === false) { - $MadelineProto->logger('DID NOT ACCEPT A CALL'); + $this->logger('DID NOT ACCEPT A CALL'); } } if ($call->getCallState() !== \danog\MadelineProto\VoIP::CALL_STATE_ENDED) { @@ -373,7 +373,7 @@ if (!class_exists('\\danog\\MadelineProto\\VoIPServerConfig')) { 'audio_congestion_window' => 4 * 1024, ] ); -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['secret_chats' => ['accept_chats' => false], 'logger' => ['logger' => 3, 'logger_level' => 5, 'logger_param' => getcwd().'/MadelineProto.log'], 'updates' => ['getdifference_interval' => 10], 'serialization' => ['serialization_interval' => 30], 'flood_timeout' => ['wait_if_lt' => 86400]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['secret_chats' => ['accept_chats' => false], 'logger' => ['logger' => 3, 'logger_level' => 5, 'logger_param' => getcwd().'/MadelineProto.log'], 'updates' => ['getdifference_interval' => 10], 'serialization' => ['serialization_interval' => 30, 'cleanup_before_serialization' => true], 'flood_timeout' => ['wait_if_lt' => 86400]]); $MadelineProto->start(); foreach (['calls', 'programmed_call', 'my_users'] as $key) { if (isset($MadelineProto->API->storage[$key])) {