This commit is contained in:
Daniil Gentili 2019-06-06 14:22:52 +00:00
parent 6a6fcb782d
commit c16328396d
2 changed files with 9 additions and 1 deletions

2
docs

@ -1 +1 @@
Subproject commit 04cf2dff613a64382b3b135df2020bdcde756b1e
Subproject commit dc05dc5cebfcec90ac7851928c522a4d635dbab6

View File

@ -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;
}