Updates fix

This commit is contained in:
Daniil Gentili 2019-05-13 01:00:22 +02:00
parent fe1d87af27
commit cf456dbeb7
2 changed files with 2 additions and 2 deletions

View File

@ -387,7 +387,7 @@ class MTProto implements TLCallback
}
if (!$this->settings['updates']['handle_old_updates']) {
$this->channels_state = [];
$this->channels_state = new CombinedUpdatesState();
$this->got_state = false;
}
yield $this->connect_to_all_dcs_async();

View File

@ -25,7 +25,7 @@ namespace danog\MadelineProto\MTProtoTools;
class CombinedUpdatesState
{
private $states = [];
public function __construct($init)
public function __construct($init = [])
{
if (!is_array($init)) {
return;