diff --git a/docs b/docs index 04cf2dff..dc05dc5c 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 04cf2dff613a64382b3b135df2020bdcde756b1e +Subproject commit dc05dc5cebfcec90ac7851928c522a4d635dbab6 diff --git a/src/danog/MadelineProto/Loop/Update/UpdateLoop.php b/src/danog/MadelineProto/Loop/Update/UpdateLoop.php index 1b1f6e90..68cf4497 100644 --- a/src/danog/MadelineProto/Loop/Update/UpdateLoop.php +++ b/src/danog/MadelineProto/Loop/Update/UpdateLoop.php @@ -21,6 +21,7 @@ namespace danog\MadelineProto\Loop\Update; use Amp\Loop; use danog\MadelineProto\Loop\Impl\ResumableSignalLoop; use danog\MadelineProto\RPCErrorException; +use danog\MadelineProto\Exception; /** * Update loop. @@ -88,6 +89,13 @@ class UpdateLoop extends ResumableSignalLoop return true; } + } catch (Exception $e) { + if (in_array($e->getMessage(), ['This peer is not present in the internal peer database'])) { + $feeder->signal(true); + $API->logger->logger("Channel private, exiting $this"); + + return true; + } throw $e; }