@mtkruto/node 0.0.824 → 0.0.825

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -405,6 +405,10 @@ export class Client extends ClientAbstract {
405
405
  promise.reject(result);
406
406
  }
407
407
  else {
408
+ if (result instanceof types.Updates) {
409
+ await this.processChats(result.chats);
410
+ await this.processUsers(result.users);
411
+ }
408
412
  promise.resolve(result);
409
413
  }
410
414
  this.promises.delete(message.body.messageId);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "module": "./esm/mod.js",
3
3
  "main": "./script/mod.js",
4
4
  "name": "@mtkruto/node",
5
- "version": "0.0.824",
5
+ "version": "0.0.825",
6
6
  "description": "MTKruto for Node.js",
7
7
  "author": "Roj <rojvv@icloud.com>",
8
8
  "license": "LGPL-3.0-or-later",
@@ -431,6 +431,10 @@ class Client extends client_abstract_js_1.ClientAbstract {
431
431
  promise.reject(result);
432
432
  }
433
433
  else {
434
+ if (result instanceof types.Updates) {
435
+ await this.processChats(result.chats);
436
+ await this.processUsers(result.users);
437
+ }
434
438
  promise.resolve(result);
435
439
  }
436
440
  this.promises.delete(message.body.messageId);