From df84276b3c02b28ce1f7b15fa4e77aaaf5dae6ee Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 14 Aug 2017 20:44:28 +0200 Subject: [PATCH] fixes --- src/danog/MadelineProto/RPCErrorException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/RPCErrorException.php b/src/danog/MadelineProto/RPCErrorException.php index ac309dbd..0ea7dd76 100644 --- a/src/danog/MadelineProto/RPCErrorException.php +++ b/src/danog/MadelineProto/RPCErrorException.php @@ -70,7 +70,7 @@ class RPCErrorException extends \Exception case 'PEER_FLOOD': $message = 'Too many requests'; break; } if ($this->rpc === $message) { - $res = json_decode(file_get_contents('https://rpc.pwrtelegram.xyz/?description_for='.$this->rpc)); + $res = json_decode(file_get_contents('https://rpc.pwrtelegram.xyz/?description_for='.$this->rpc), true); if ($res['ok']) { $message = $res['result']; }