Reset message ID array

This commit is contained in:
Daniil Gentili 2019-06-05 20:41:57 +02:00
parent 4a8f3d15c1
commit 864172ce74
2 changed files with 2 additions and 0 deletions

View File

@ -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.

View File

@ -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();