Reset message ID array
This commit is contained in:
parent
4a8f3d15c1
commit
864172ce74
@ -158,6 +158,7 @@ $file = yield $MadelineProto->file_get_contents('https://url');
|
|||||||
|
|
||||||
You can use this library to asynchronously download files from the web.
|
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:
|
* 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.
|
This allows you to create multiple instances of MadelineProto **asynchronously**, because each instantiation will be done asynchronously.
|
||||||
|
|
||||||
|
@ -416,6 +416,7 @@ class MTProto extends AsyncConstruct implements TLCallback
|
|||||||
|
|
||||||
if (!$this->settings['updates']['handle_old_updates']) {
|
if (!$this->settings['updates']['handle_old_updates']) {
|
||||||
$this->channels_state = new CombinedUpdatesState();
|
$this->channels_state = new CombinedUpdatesState();
|
||||||
|
$this->msg_ids = [];
|
||||||
$this->got_state = false;
|
$this->got_state = false;
|
||||||
}
|
}
|
||||||
yield $this->connect_to_all_dcs_async();
|
yield $this->connect_to_all_dcs_async();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user