From 1397842c86319619fb05026ea165676ab97c1306 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 17 Jun 2019 13:01:13 +0200 Subject: [PATCH] Init default update state if not present --- docs | 2 +- src/danog/MadelineProto/MTProto.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs b/docs index d9adbbb2..aa2c729a 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit d9adbbb25c3edb2bd076500562040249742644a4 +Subproject commit aa2c729ab58df6fd79753083bc3c5930d006efce diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 336f4812..7114336d 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -994,6 +994,7 @@ class MTProto extends AsyncConstruct implements TLCallback if (!isset($this->seqUpdater)) { $this->seqUpdater = new SeqLoop($this); } + $this->channels_state->get(false); $channelIds = []; foreach ($this->channels_state->get() as $state) { $channelIds[] = $state->getChannel();