diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index dfa35c800..6612427ed 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -1190,6 +1190,9 @@ class MTProto extends AsyncConstruct implements TLCallback if ($this->authorized === true) { $this->authorized = self::LOGGED_IN; } + if (!isset($this->snitch)) { + $this->snitch = new Snitch; + } // Convert old array settings to new settings object if (\is_array($this->settings)) { if (($this->settings['updates']['callback'] ?? '') === 'getUpdatesUpdateHandler') {