@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.
- package/esm/client/client.js +4 -0
- package/package.json +1 -1
- package/script/client/client.js +4 -0
package/esm/client/client.js
CHANGED
|
@@ -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
package/script/client/client.js
CHANGED
|
@@ -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);
|