diff --git a/src/danog/MadelineProto/Connection.php b/src/danog/MadelineProto/Connection.php index 3e78f3212..5dae2bf94 100644 --- a/src/danog/MadelineProto/Connection.php +++ b/src/danog/MadelineProto/Connection.php @@ -305,6 +305,7 @@ class Connection $response = $this->read_http_payload(); if ($response['code'] !== 200) { Logger::log($response['body']); + return $this->pack_signed_int(-$response['code']); //throw new Exception($response['description'], $response['code']); }