This commit is contained in:
Daniil Gentili 2019-07-06 19:22:13 +02:00
commit 4fa69920fa

View File

@ -23,6 +23,7 @@ class EventHandler extends APIFactory
{ {
public function __construct($MadelineProto) public function __construct($MadelineProto)
{ {
if (!$MadelineProto) return;
$this->API = $MadelineProto->API; $this->API = $MadelineProto->API;
$this->async = &$MadelineProto->async; $this->async = &$MadelineProto->async;
$this->methods = &$MadelineProto->methods; $this->methods = &$MadelineProto->methods;