diff --git a/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php b/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php index f689a4f0..dd8fb54a 100644 --- a/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php @@ -414,7 +414,7 @@ trait AuthKeyHandler } } - throw new \danog\MadelineProto\SecurityException('Auth Failed'); + if (strpos($datacenter, 'cdn') === false) throw new \danog\MadelineProto\SecurityException('Auth Failed'); } public function check_G($g_a, $p)