diff --git a/src/danog/MadelineProto/Connection.php b/src/danog/MadelineProto/Connection.php index 654338a6d..3fdd162a5 100644 --- a/src/danog/MadelineProto/Connection.php +++ b/src/danog/MadelineProto/Connection.php @@ -347,7 +347,7 @@ class Connection if (!isset($this->waiter)) { $this->waiter = new HttpWaitLoop($this); } - if (!isset($this->pinger) && !$this->ctx->isMedia()) { // && ($this->ctx->hasStreamName(WssStream::class) || $this->ctx->hasStreamName(WsStream::class))) { + if (!isset($this->pinger) && !$this->ctx->isMedia() && !$this->ctx->isCDN()) { // && ($this->ctx->hasStreamName(WssStream::class) || $this->ctx->hasStreamName(WsStream::class))) { $this->pinger = new PingLoop($this); } foreach ($this->new_outgoing as $message_id => $message) { diff --git a/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php b/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php index 32c10056c..649f27fa5 100644 --- a/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php @@ -139,10 +139,7 @@ trait AuthKeyHandler $pq = Tools::unpackSignedLong(\strrev($pq_bytes)); foreach ([ 'native_single_cpp', - 'python_single_alt', - 'python_single', 'native_single', - 'wolfram' ] as $method) { $this->logger->logger("Factorizing with $method (please wait, might take a while)"); if ($method !== 'native_single_cpp') {