diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fd0bd4a..28be59b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -158,6 +158,7 @@ $file = yield $MadelineProto->file_get_contents('https://url'); You can use this library to asynchronously download files from the web. +* ALL internal MadelineProto methods were converted to async automatically using [an automatic script](https://github.com/danog/MadelineProto/blob/master/asyncify.php): with some changes and conversion to use [php-parser](https://github.com/nikic/PHP-Parser), it can be used to automatically asyncify **any** script (will implement in a future version of MadelineProto). * I created a custom async API to asynchronously construct objects: This allows you to create multiple instances of MadelineProto **asynchronously**, because each instantiation will be done asynchronously. diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index db490c40..e81424dc 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -416,6 +416,7 @@ class MTProto extends AsyncConstruct implements TLCallback if (!$this->settings['updates']['handle_old_updates']) { $this->channels_state = new CombinedUpdatesState(); + $this->msg_ids = []; $this->got_state = false; } yield $this->connect_to_all_dcs_async();