Store future salts in class variable

This commit is contained in:
danogentili 2016-11-17 13:56:11 +03:00
parent 947a1a973f
commit a35812c5f1

View File

@ -29,10 +29,12 @@ class API extends Tools
}
\danog\MadelineProto\Logger::log('Ping...');
$ping = $this->ping([3]);
\danog\MadelineProto\Logger::log('Pong: '.$ping['ping_id']);
$pong = $this->ping([3]);
\danog\MadelineProto\Logger::log('Pong: '.$pong['ping_id']);
\danog\MadelineProto\Logger::log('Getting future salts...');
$future_salts = $this->get_future_salts([3]);
$this->future_salts = $this->get_future_salts([3]);
\danog\MadelineProto\Logger::log('MadelineProto is ready!');
}