diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 8f2f2fc2e..1fd18aabc 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -48,7 +48,7 @@ class MTProto extends PrimeModule // Load rsa key \danog\MadelineProto\Logger::log('Loading RSA key...'); - $this->key = new RSA($settings['authorization']['rsa_key']); + $this->key = new RSA($this->settings['authorization']['rsa_key']); // Istantiate TL class \danog\MadelineProto\Logger::log('Translating tl schemas...');