diff --git a/src/danog/MadelineProto/MTProtoTools/CallHandler.php b/src/danog/MadelineProto/MTProtoTools/CallHandler.php index 942ae2a5..40eeca44 100644 --- a/src/danog/MadelineProto/MTProtoTools/CallHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/CallHandler.php @@ -134,7 +134,7 @@ trait CallHandler if ($error === -404) { if ($this->datacenter->sockets[$aargs['datacenter']]->temp_auth_key !== null) { \danog\MadelineProto\Logger::log(['WARNING: Resetting auth key...'], \danog\MadelineProto\Logger::WARNING); - $this->datacenter->sockets[$aargs['datacenter']]->auth_key = null; + $this->datacenter->sockets[$aargs['datacenter']]->temp_auth_key = null; $this->init_authorization(); throw new \danog\MadelineProto\Exception('I had to recreate the temporary authorization key');