@open-wa/wa-automate 4.42.5 → 4.42.6
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/dist/api/Client.d.ts +4 -0
- package/dist/api/Client.js +8 -0
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -1207,6 +1207,10 @@ export declare class Client {
|
|
1207
1207
|
* @param chatId chat id: `xxxxx@c.us`
|
1208
1208
|
*/
|
1209
1209
|
sendSeen(chatId: ChatId): Promise<boolean>;
|
1210
|
+
/**
|
1211
|
+
* Runs sendSeen on all chats
|
1212
|
+
*/
|
1213
|
+
markAllRead(): Promise<boolean>;
|
1210
1214
|
/**
|
1211
1215
|
* Sets a chat status to unread. May be useful to get host's attention
|
1212
1216
|
* @param chatId chat id: `xxxxx@c.us`
|
package/dist/api/Client.js
CHANGED
@@ -2572,6 +2572,14 @@ class Client {
|
|
2572
2572
|
return yield this.pup(chatId => WAPI.sendSeen(chatId), chatId);
|
2573
2573
|
});
|
2574
2574
|
}
|
2575
|
+
/**
|
2576
|
+
* Runs sendSeen on all chats
|
2577
|
+
*/
|
2578
|
+
markAllRead() {
|
2579
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2580
|
+
return yield this.pup(() => WAPI.markAllRead());
|
2581
|
+
});
|
2582
|
+
}
|
2575
2583
|
/**
|
2576
2584
|
* Sets a chat status to unread. May be useful to get host's attention
|
2577
2585
|
* @param chatId chat id: `xxxxx@c.us`
|
package/package.json
CHANGED