diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 4e2ed0ee..b23a30d0 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -514,8 +514,10 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB public function parse_config() { - $this->parse_dc_options($this->config['dc_options']); - unset($this->config['dc_options']); + if (isset($this->config['dc_options'])) { + $this->parse_dc_options($this->config['dc_options']); + unset($this->config['dc_options']); + } \danog\MadelineProto\Logger::log(['Updated config!', $this->config], Logger::NOTICE); }