From 7d2e99159d8b16a792ee8d12051877a476ff31bb Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 6 May 2017 13:25:00 +0200 Subject: [PATCH] Throw correct exception --- src/danog/MadelineProto/MTProtoTools/ResponseHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProtoTools/ResponseHandler.php b/src/danog/MadelineProto/MTProtoTools/ResponseHandler.php index a2e3f4b4..3effd0e9 100644 --- a/src/danog/MadelineProto/MTProtoTools/ResponseHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/ResponseHandler.php @@ -340,7 +340,7 @@ trait ResponseHandler case 'AUTH_KEY_INVALID': $this->datacenter->sockets[$datacenter]->temp_auth_key = null; $this->init_authorization(); // idk - throw new \danog\MadelineProto\Exception($server_answer['error_message'], $server_answer['error_code']); + throw new \danog\MadelineProto\RPCErrorException($server_answer['error_message'], $server_answer['error_code']); } case 420: