From a195f57e77b39ea326fab3c0308d3c4e408dc3c4 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 28 Jul 2017 22:38:13 +0200 Subject: [PATCH] Fixes --- src/danog/MadelineProto/VoIP/AuthKeyHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php index 2d402e53..44e6d1f3 100644 --- a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php +++ b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php @@ -76,7 +76,7 @@ trait AuthKeyHandler try { $res = $this->method_call('phone.acceptCall', ['peer' => $call, 'g_b' => $g_b->toBytes(), 'protocol' => ['_' => 'phoneCallProtocol', 'udp_reflector' => true, 'udp_p2p' => true, 'min_layer' => 65, 'max_layer' => 65]], ['datacenter' => $this->datacenter->curdc]); } catch (\danog\MadelineProto\RPCErrorException $e) { - if ($e->RPC === 'CALL_ALREADY_ACCEPTED') { + if ($e->rpc === 'CALL_ALREADY_ACCEPTED') { return true; } throw $e;