@open-wa/wa-automate 4.32.2 → 4.32.3

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.
@@ -756,6 +756,12 @@ export declare class Client {
756
756
  * @param {boolean} on turn on similated typing, false to turn it off you need to manually turn this off.
757
757
  */
758
758
  simulateTyping(to: ChatId, on: boolean): Promise<boolean>;
759
+ /**
760
+ * Simulate '...recording' in chat
761
+ * @param {string} to 'xxxx@c.us'
762
+ * @param {boolean} on turn on similated recording, false to turn it off you need to manually turn this off.
763
+ */
764
+ simulateRecording(to: ChatId, on: boolean): Promise<boolean>;
759
765
  /**
760
766
  * @param id The id of the conversation
761
767
  * @param archive boolean true => archive, false => unarchive
@@ -1775,6 +1775,16 @@ class Client {
1775
1775
  return yield this.pup(({ to, on }) => WAPI.simulateTyping(to, on), { to, on });
1776
1776
  });
1777
1777
  }
1778
+ /**
1779
+ * Simulate '...recording' in chat
1780
+ * @param {string} to 'xxxx@c.us'
1781
+ * @param {boolean} on turn on similated recording, false to turn it off you need to manually turn this off.
1782
+ */
1783
+ simulateRecording(to, on) {
1784
+ return __awaiter(this, void 0, void 0, function* () {
1785
+ return yield this.pup(({ to, on }) => WAPI.simulateRecording(to, on), { to, on });
1786
+ });
1787
+ }
1778
1788
  /**
1779
1789
  * @param id The id of the conversation
1780
1790
  * @param archive boolean true => archive, false => unarchive
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.32.2",
3
+ "version": "4.32.3",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",