diff --git a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php index 2b2315b8..e70d4e7a 100644 --- a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php @@ -59,6 +59,7 @@ trait UpdateHandler } }); $time = microtime(true); + try { try { $waiting = $this->datacenter->select(); @@ -75,6 +76,7 @@ trait UpdateHandler throw new \danog\MadelineProto\Exception('I had to recreate the temporary authorization key'); } } + throw new \danog\MadelineProto\RPCErrorException($error, $error); } $only_updates = $this->handle_messages($dc);