@open-wa/wa-automate 4.65.0 → 4.66.0
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!
|
|
@@ -456,11 +456,10 @@ class ChatwootClient {
|
|
|
456
456
|
__1.log.info(`INCOMING MESSAGE ATTACHMENT ${contactId}: ${content} ${message.id}`);
|
|
457
457
|
const formData = new form_data_1.default();
|
|
458
458
|
formData.append('attachments[]', Buffer.from(file.split(',')[1], 'base64'), {
|
|
459
|
-
knownLength: 1,
|
|
460
459
|
filename: `${message.t}.${mime_types_1.default.extension(message.mimetype)}`,
|
|
461
460
|
contentType: (file.match(/[^:\s*]\w+\/[\w-+\d.]+(?=[;| ])/) || ["application/octet-stream"])[0]
|
|
462
461
|
});
|
|
463
|
-
formData.append('content', content);
|
|
462
|
+
formData.append('content', content || "");
|
|
464
463
|
formData.append('message_type', 'incoming');
|
|
465
464
|
try {
|
|
466
465
|
const { data } = yield this.cwReq('post', `conversations/${convoReg[contactId]}/messages`, formData, formData.getHeaders());
|
|
@@ -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/dist/utils/tools.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
import { AdvancedFile, ConfigObject, DataURL } from '../api/model';
|
|
5
|
-
import { AxiosRequestConfig
|
|
5
|
+
import { AxiosRequestConfig } from 'axios';
|
|
6
6
|
import { SessionInfo } from '../api/model/sessionInfo';
|
|
7
7
|
import { Readable } from "stream";
|
|
8
8
|
export declare const timeout: (ms: any) => Promise<unknown>;
|
|
@@ -39,7 +39,7 @@ export declare const isDataURL: (s: string) => boolean;
|
|
|
39
39
|
* @param url The url
|
|
40
40
|
* @param optionsOverride You can use this to override the [axios request config](https://github.com/axios/axios#request-config)
|
|
41
41
|
*/
|
|
42
|
-
export declare const getBufferFromUrl: (url: string, optionsOverride?:
|
|
42
|
+
export declare const getBufferFromUrl: (url: string, optionsOverride?: any) => Promise<[Buffer, any]>;
|
|
43
43
|
/**
|
|
44
44
|
* @internal
|
|
45
45
|
* A convinience method to download the [[DataURL]] of a file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-wa/wa-automate",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.66.0",
|
|
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,12 +105,12 @@
|
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@brillout/import": "^0.2.1",
|
|
108
|
-
"@discordjs/collection": "^
|
|
108
|
+
"@discordjs/collection": "^1.5.1",
|
|
109
109
|
"@open-wa/wa-automate-socket-client": "*",
|
|
110
110
|
"@open-wa/wa-decrypt": "^4.3.1",
|
|
111
111
|
"atob": "^2.1.2",
|
|
112
112
|
"aws4": "^1.11.0",
|
|
113
|
-
"axios": "^
|
|
113
|
+
"axios": "^1.4.0",
|
|
114
114
|
"boxen": "^5.0.0",
|
|
115
115
|
"cfonts": "^2.8.5",
|
|
116
116
|
"change-case": "^4.1.2",
|
|
@@ -176,7 +176,7 @@
|
|
|
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",
|