Backwards compatibility

This commit is contained in:
Daniil Gentili 2019-07-06 19:22:02 +02:00
parent 3dc3d6e5c8
commit c1a8229ff3

View File

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