@open-wa/wa-automate 4.59.1 → 4.61.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/Client.d.ts +36 -6
- package/dist/api/Client.js +37 -15
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -525,6 +525,15 @@ export declare class Client {
|
|
525
525
|
*/
|
526
526
|
forceUpdateLiveLocation(chatId: ChatId): Promise<LiveLocationChangedEvent[] | boolean>;
|
527
527
|
/**
|
528
|
+
*
|
529
|
+
* @deprecated
|
530
|
+
*
|
531
|
+
* :::danger
|
532
|
+
*
|
533
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
534
|
+
*
|
535
|
+
* :::
|
536
|
+
*
|
528
537
|
* Test the button commands on MD accounts with an insiders key. This is a temporary feature to help fix issue #2658
|
529
538
|
*/
|
530
539
|
testButtons(chatId: ChatId): Promise<any>;
|
@@ -578,7 +587,14 @@ export declare class Client {
|
|
578
587
|
*/
|
579
588
|
sendPaymentRequest(to: ChatId, amount: number, currency: string, message?: string): Promise<boolean | MessageId>;
|
580
589
|
/**
|
581
|
-
*
|
590
|
+
*
|
591
|
+
* @deprecated
|
592
|
+
*
|
593
|
+
* :::danger
|
594
|
+
*
|
595
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
596
|
+
*
|
597
|
+
* :::
|
582
598
|
*
|
583
599
|
* Send generic quick reply buttons. This is an insiders feature for MD accounts.
|
584
600
|
*
|
@@ -590,16 +606,17 @@ export declare class Client {
|
|
590
606
|
*/
|
591
607
|
sendButtons(to: ChatId, body: string | LocationButtonBody, buttons: Button[], title?: string, footer?: string): Promise<boolean | MessageId>;
|
592
608
|
/**
|
593
|
-
* {@license:insiders@}
|
594
609
|
*
|
595
|
-
*
|
610
|
+
* @deprecated
|
596
611
|
*
|
597
|
-
* :::
|
612
|
+
* :::danger
|
598
613
|
*
|
599
|
-
*
|
614
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
600
615
|
*
|
601
616
|
* :::
|
602
617
|
*
|
618
|
+
* Send advanced buttons with media body. This is an insiders feature for MD accounts.
|
619
|
+
*
|
603
620
|
* Body can be location, image, video or document. Buttons can be quick reply, url or call buttons.
|
604
621
|
*
|
605
622
|
* @param {ChatId} to chat id
|
@@ -620,7 +637,14 @@ export declare class Client {
|
|
620
637
|
*/
|
621
638
|
sendBanner(to: ChatId, base64: Base64): Promise<boolean | MessageId>;
|
622
639
|
/**
|
623
|
-
*
|
640
|
+
* @deprecated
|
641
|
+
*
|
642
|
+
*
|
643
|
+
* :::danger
|
644
|
+
*
|
645
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
646
|
+
*
|
647
|
+
* :::
|
624
648
|
*
|
625
649
|
* Send a list message. This will not work when being sent from business accounts!
|
626
650
|
*
|
@@ -1399,6 +1423,12 @@ export declare class Client {
|
|
1399
1423
|
*
|
1400
1424
|
* {@license:insiders@}
|
1401
1425
|
*
|
1426
|
+
* :::danger
|
1427
|
+
*
|
1428
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
1429
|
+
*
|
1430
|
+
* :::
|
1431
|
+
*
|
1402
1432
|
* Use a raw payload within your open-wa session
|
1403
1433
|
*
|
1404
1434
|
* @param chatId
|
package/dist/api/Client.js
CHANGED
@@ -1413,6 +1413,15 @@ class Client {
|
|
1413
1413
|
});
|
1414
1414
|
}
|
1415
1415
|
/**
|
1416
|
+
*
|
1417
|
+
* @deprecated
|
1418
|
+
*
|
1419
|
+
* :::danger
|
1420
|
+
*
|
1421
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
1422
|
+
*
|
1423
|
+
* :::
|
1424
|
+
*
|
1416
1425
|
* Test the button commands on MD accounts with an insiders key. This is a temporary feature to help fix issue #2658
|
1417
1426
|
*/
|
1418
1427
|
testButtons(chatId) {
|
@@ -1527,7 +1536,14 @@ class Client {
|
|
1527
1536
|
});
|
1528
1537
|
}
|
1529
1538
|
/**
|
1530
|
-
*
|
1539
|
+
*
|
1540
|
+
* @deprecated
|
1541
|
+
*
|
1542
|
+
* :::danger
|
1543
|
+
*
|
1544
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
1545
|
+
*
|
1546
|
+
* :::
|
1531
1547
|
*
|
1532
1548
|
* Send generic quick reply buttons. This is an insiders feature for MD accounts.
|
1533
1549
|
*
|
@@ -1545,16 +1561,17 @@ class Client {
|
|
1545
1561
|
});
|
1546
1562
|
}
|
1547
1563
|
/**
|
1548
|
-
* {@license:insiders@}
|
1549
1564
|
*
|
1550
|
-
*
|
1565
|
+
* @deprecated
|
1551
1566
|
*
|
1552
|
-
* :::
|
1567
|
+
* :::danger
|
1553
1568
|
*
|
1554
|
-
*
|
1569
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
1555
1570
|
*
|
1556
1571
|
* :::
|
1557
1572
|
*
|
1573
|
+
* Send advanced buttons with media body. This is an insiders feature for MD accounts.
|
1574
|
+
*
|
1558
1575
|
* Body can be location, image, video or document. Buttons can be quick reply, url or call buttons.
|
1559
1576
|
*
|
1560
1577
|
* @param {ChatId} to chat id
|
@@ -1607,7 +1624,14 @@ class Client {
|
|
1607
1624
|
});
|
1608
1625
|
}
|
1609
1626
|
/**
|
1610
|
-
*
|
1627
|
+
* @deprecated
|
1628
|
+
*
|
1629
|
+
*
|
1630
|
+
* :::danger
|
1631
|
+
*
|
1632
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
1633
|
+
*
|
1634
|
+
* :::
|
1611
1635
|
*
|
1612
1636
|
* Send a list message. This will not work when being sent from business accounts!
|
1613
1637
|
*
|
@@ -2420,15 +2444,7 @@ class Client {
|
|
2420
2444
|
*/
|
2421
2445
|
getAllGroups(withNewMessagesOnly = false) {
|
2422
2446
|
return __awaiter(this, void 0, void 0, function* () {
|
2423
|
-
|
2424
|
-
// prettier-ignore
|
2425
|
-
const chats = yield this.pup(() => WAPI.getAllChatsWithNewMsg());
|
2426
|
-
return chats.filter(chat => chat.isGroup);
|
2427
|
-
}
|
2428
|
-
else {
|
2429
|
-
const chats = yield this.pup(() => WAPI.getAllChats());
|
2430
|
-
return chats.filter(chat => chat.isGroup);
|
2431
|
-
}
|
2447
|
+
return yield this.pup((withNewMessagesOnly) => WAPI.getAllGroups(withNewMessagesOnly), withNewMessagesOnly);
|
2432
2448
|
});
|
2433
2449
|
}
|
2434
2450
|
/**
|
@@ -2933,6 +2949,12 @@ class Client {
|
|
2933
2949
|
*
|
2934
2950
|
* {@license:insiders@}
|
2935
2951
|
*
|
2952
|
+
* :::danger
|
2953
|
+
*
|
2954
|
+
* Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
|
2955
|
+
*
|
2956
|
+
* :::
|
2957
|
+
*
|
2936
2958
|
* Use a raw payload within your open-wa session
|
2937
2959
|
*
|
2938
2960
|
* @param chatId
|
package/package.json
CHANGED