@open-wa/wa-automate 4.65.1 → 4.66.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.
package/dist/api/Client.d.ts
CHANGED
|
@@ -589,13 +589,15 @@ export declare class Client {
|
|
|
589
589
|
sendPaymentRequest(to: ChatId, amount: number, currency: string, message?: string): Promise<boolean | MessageId>;
|
|
590
590
|
/**
|
|
591
591
|
*
|
|
592
|
-
*
|
|
592
|
+
* @deprecated
|
|
593
593
|
*
|
|
594
594
|
* :::danger
|
|
595
595
|
*
|
|
596
596
|
* WA BIZ accounts CANNOT send buttons. This is a WA limitation. DO NOT get a license solely for access to buttons on wa business accounts.
|
|
597
597
|
* THIS IS NOT WORKING FOR GROUPS YET.
|
|
598
598
|
*
|
|
599
|
+
* BUTTONS ARE DEPRECATED FOR NOW. DO NOT GET A LICENSE TO USE BUTTONS.
|
|
600
|
+
*
|
|
599
601
|
* :::
|
|
600
602
|
*
|
|
601
603
|
* Send generic quick reply buttons. This is an insiders feature for MD accounts.
|
|
@@ -608,8 +610,7 @@ export declare class Client {
|
|
|
608
610
|
*/
|
|
609
611
|
sendButtons(to: ChatId, body: string | LocationButtonBody, buttons: Button[], title?: string, footer?: string): Promise<boolean | MessageId>;
|
|
610
612
|
/**
|
|
611
|
-
*
|
|
612
|
-
* {@license:insiders@}
|
|
613
|
+
* @deprecated
|
|
613
614
|
*
|
|
614
615
|
* :::danger
|
|
615
616
|
*
|
|
@@ -618,6 +619,8 @@ export declare class Client {
|
|
|
618
619
|
*
|
|
619
620
|
* THIS IS NOT WORKING FOR GROUPS YET.
|
|
620
621
|
*
|
|
622
|
+
* ADVANCED ARE DEPRECATED FOR NOW. DO NOT GET A LICENSE TO USE BUTTONS.
|
|
623
|
+
*
|
|
621
624
|
* :::
|
|
622
625
|
*
|
|
623
626
|
*
|
|
@@ -644,13 +647,15 @@ export declare class Client {
|
|
|
644
647
|
sendBanner(to: ChatId, base64: Base64): Promise<boolean | MessageId>;
|
|
645
648
|
/**
|
|
646
649
|
*
|
|
647
|
-
*
|
|
650
|
+
* @deprecated
|
|
648
651
|
*
|
|
649
652
|
* :::danger
|
|
650
653
|
*
|
|
651
654
|
* It is not currently possible to send a listmessage to a group chat. This is a WA limitation.
|
|
652
655
|
* Please DO NOT get a license solely for access to list messages in group chats.
|
|
653
656
|
*
|
|
657
|
+
* LIST MESSAGES ARE DEPRECATED TILL FURTHER NOTICE
|
|
658
|
+
*
|
|
654
659
|
* :::
|
|
655
660
|
*
|
|
656
661
|
* Send a list message. This will not work when being sent from business accounts!
|
package/dist/api/Client.js
CHANGED
|
@@ -1546,13 +1546,15 @@ class Client {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
/**
|
|
1548
1548
|
*
|
|
1549
|
-
*
|
|
1549
|
+
* @deprecated
|
|
1550
1550
|
*
|
|
1551
1551
|
* :::danger
|
|
1552
1552
|
*
|
|
1553
1553
|
* WA BIZ accounts CANNOT send buttons. This is a WA limitation. DO NOT get a license solely for access to buttons on wa business accounts.
|
|
1554
1554
|
* THIS IS NOT WORKING FOR GROUPS YET.
|
|
1555
1555
|
*
|
|
1556
|
+
* BUTTONS ARE DEPRECATED FOR NOW. DO NOT GET A LICENSE TO USE BUTTONS.
|
|
1557
|
+
*
|
|
1556
1558
|
* :::
|
|
1557
1559
|
*
|
|
1558
1560
|
* Send generic quick reply buttons. This is an insiders feature for MD accounts.
|
|
@@ -1571,8 +1573,7 @@ class Client {
|
|
|
1571
1573
|
});
|
|
1572
1574
|
}
|
|
1573
1575
|
/**
|
|
1574
|
-
*
|
|
1575
|
-
* {@license:insiders@}
|
|
1576
|
+
* @deprecated
|
|
1576
1577
|
*
|
|
1577
1578
|
* :::danger
|
|
1578
1579
|
*
|
|
@@ -1581,6 +1582,8 @@ class Client {
|
|
|
1581
1582
|
*
|
|
1582
1583
|
* THIS IS NOT WORKING FOR GROUPS YET.
|
|
1583
1584
|
*
|
|
1585
|
+
* ADVANCED ARE DEPRECATED FOR NOW. DO NOT GET A LICENSE TO USE BUTTONS.
|
|
1586
|
+
*
|
|
1584
1587
|
* :::
|
|
1585
1588
|
*
|
|
1586
1589
|
*
|
|
@@ -1639,13 +1642,15 @@ class Client {
|
|
|
1639
1642
|
}
|
|
1640
1643
|
/**
|
|
1641
1644
|
*
|
|
1642
|
-
*
|
|
1645
|
+
* @deprecated
|
|
1643
1646
|
*
|
|
1644
1647
|
* :::danger
|
|
1645
1648
|
*
|
|
1646
1649
|
* It is not currently possible to send a listmessage to a group chat. This is a WA limitation.
|
|
1647
1650
|
* Please DO NOT get a license solely for access to list messages in group chats.
|
|
1648
1651
|
*
|
|
1652
|
+
* LIST MESSAGES ARE DEPRECATED TILL FURTHER NOTICE
|
|
1653
|
+
*
|
|
1649
1654
|
* :::
|
|
1650
1655
|
*
|
|
1651
1656
|
* Send a list message. This will not work when being sent from business accounts!
|
|
@@ -231,6 +231,16 @@ function create(config = {}) {
|
|
|
231
231
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
232
232
|
spinner.succeed('Use this easy pre-filled link to report an issue: ' + (0, tools_1.generateGHIssueLink)(config, debugInfo));
|
|
233
233
|
spinner.info(`Time to injection: ${((0, tools_1.now)() - browserLaunchedTs).toFixed(0)}ms`);
|
|
234
|
+
/**
|
|
235
|
+
* Atempt to avoid invariant violations
|
|
236
|
+
*/
|
|
237
|
+
const invariantAviodanceTs = (0, tools_1.now)();
|
|
238
|
+
yield Promise.race([
|
|
239
|
+
waPage.waitForFunction(`(()=>{if(!window.webpackChunkwhatsapp_web_client && window.webpackChunkwhatsapp_web_client.length) return false; return window.webpackChunkwhatsapp_web_client.length > 15})()`, { timeout: 10000 }).catch(() => { }),
|
|
240
|
+
waPage.waitForFunction(`[...document.getElementsByTagName('div')].filter(x=>x.dataset && x.dataset.testid)[0]?.dataset?.testid === 'qrcode'`, { timeout: 10000 }).catch(() => { }),
|
|
241
|
+
waPage.waitForFunction(`document.getElementsByTagName('circle').length===1`, { timeout: 10000 }).catch(() => { }) //qr spinner is present
|
|
242
|
+
]);
|
|
243
|
+
spinner.info(`Invariant Violation Avoidance: ${((0, tools_1.now)() - invariantAviodanceTs).toFixed(0)}ms`);
|
|
234
244
|
if (canInjectEarly) {
|
|
235
245
|
if (attemptingReauth)
|
|
236
246
|
yield waPage.evaluate(`window.Store = {"Msg": true}`);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Please see: https://discord.js.org/#/docs/main/stable/class/Collector
|
|
7
7
|
*/
|
|
8
|
-
import BaseCollection from '@discordjs/collection';
|
|
8
|
+
import { Collection as BaseCollection } from '@discordjs/collection';
|
|
9
9
|
import { EventEmitter } from 'events';
|
|
10
10
|
export declare class Collection<K, V> extends BaseCollection<K, V> {
|
|
11
11
|
toJSON(): any[];
|
|
@@ -20,9 +20,6 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
20
20
|
function reject(value) { resume("throw", value); }
|
|
21
21
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
22
22
|
};
|
|
23
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25
|
-
};
|
|
26
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
24
|
exports.Collector = exports.Collection = void 0;
|
|
28
25
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
@@ -32,9 +29,9 @@ exports.Collector = exports.Collection = void 0;
|
|
|
32
29
|
* Please see: https://discord.js.org/#/docs/main/stable/class/Collector
|
|
33
30
|
*/
|
|
34
31
|
// import { EventEmitter2 } from 'eventemitter2';
|
|
35
|
-
const collection_1 =
|
|
32
|
+
const collection_1 = require("@discordjs/collection");
|
|
36
33
|
const events_1 = require("events");
|
|
37
|
-
class Collection extends collection_1.
|
|
34
|
+
class Collection extends collection_1.Collection {
|
|
38
35
|
toJSON() {
|
|
39
36
|
return this.map((e) => (typeof e.toJSON === 'function' ? e.toJSON() : e));
|
|
40
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-wa/wa-automate",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.66.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",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@brillout/import": "^0.2.1",
|
|
108
|
-
"@discordjs/collection": "
|
|
108
|
+
"@discordjs/collection": "0.8.0",
|
|
109
109
|
"@open-wa/wa-automate-socket-client": "*",
|
|
110
110
|
"@open-wa/wa-decrypt": "^4.3.1",
|
|
111
111
|
"atob": "^2.1.2",
|
|
@@ -176,11 +176,14 @@
|
|
|
176
176
|
"ts-morph": "^12.0.0",
|
|
177
177
|
"type-fest": "^1.1.1",
|
|
178
178
|
"update-notifier": "^5.0.0",
|
|
179
|
-
"uuid": "^
|
|
179
|
+
"uuid": "^9.0.0",
|
|
180
180
|
"uuid-apikey": "^1.5.3",
|
|
181
181
|
"winston": "^3.6.0",
|
|
182
182
|
"winston-daily-rotate-file": "^4.5.5",
|
|
183
183
|
"winston-syslog": "^2.5.0",
|
|
184
184
|
"xmlbuilder2": "^3.0.2"
|
|
185
|
+
},
|
|
186
|
+
"overrides": {
|
|
187
|
+
"uuid": "^9.0.0"
|
|
185
188
|
}
|
|
186
189
|
}
|