diff --git a/src/danog/MadelineProto/API.php b/src/danog/MadelineProto/API.php index efbd740f..d2914df3 100644 --- a/src/danog/MadelineProto/API.php +++ b/src/danog/MadelineProto/API.php @@ -132,8 +132,9 @@ class API extends APIFactory public function __sleep() { - return ["API"]; + return ['API']; } + public function __wakeup() { $this->APIFactory(); diff --git a/src/danog/MadelineProto/TL/TLConstructor.php b/src/danog/MadelineProto/TL/TLConstructor.php index bc0e4dcd..30280d58 100644 --- a/src/danog/MadelineProto/TL/TLConstructor.php +++ b/src/danog/MadelineProto/TL/TLConstructor.php @@ -20,7 +20,6 @@ class TLConstructor extends TLParams public $params = []; public $key = 0; - public function add($json_dict, $mtproto) { $this->id[$this->key] = (int) $json_dict['id']; diff --git a/testing.php b/testing.php index f0356412..bf031061 100755 --- a/testing.php +++ b/testing.php @@ -47,4 +47,3 @@ if (file_exists('token.php')) { var_dump($authorization); } echo 'Size of MadelineProto instance is '.strlen(serialize($unserialized)).' bytes'.PHP_EOL; -