Closed NabiKAZ closed 5 years ago
Please ensure that the class definition \"EventHandler\" of the object you are trying to operate on was loaded before unserialize() gets called
@danog As I said, I just use API function, It's source:
<?php
require_once __DIR__ . '/vendor/autoload.php';
$settings = [
'app_info' => [
'api_id' => 'xxxxxxxxxxxx',
'api_hash' => 'xxxxxxxxxxxxxxxxxxxxxxxxx',
],
'connection_settings' => [
'all' => [
'proxy' => '\SocksProxy',
'proxy_extra' => [
'address' => '127.0.0.1',
'port' => '9150',
],
],
],
];
$MadelineProto = new \danog\MadelineProto\API('sessions/nabi.session', $settings);
P.S.: When the issue is still unresolved, why you close it? The users can not reopen it, when you close it.
Fixed
I use latest commit 6320b2ea89eb183906aa42b3cd4d1ae95e5ac4c5 I just use
new \danog\MadelineProto\API
.But get errors: