@builderbot/provider-wppconnect 1.0.20-alpha.0 → 1.0.23-alpha.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/index.cjs +17 -14
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -30604,7 +30604,6 @@ class WPPConnectProvider extends bot.ProviderClass {
|
|
|
30604
30604
|
*/
|
|
30605
30605
|
this.initWppConnect = async () => {
|
|
30606
30606
|
try {
|
|
30607
|
-
this.emit('preinit');
|
|
30608
30607
|
const name = this.globalVendorArgs.name;
|
|
30609
30608
|
const session = await wppconnect.create({
|
|
30610
30609
|
session: name,
|
|
@@ -30612,10 +30611,11 @@ class WPPConnectProvider extends bot.ProviderClass {
|
|
|
30612
30611
|
if (attempt == 5)
|
|
30613
30612
|
throw new Error();
|
|
30614
30613
|
this.emit('require_action', {
|
|
30614
|
+
title: '⚡⚡ ACTION REQUIRED ⚡⚡',
|
|
30615
30615
|
instructions: [
|
|
30616
|
-
`
|
|
30617
|
-
`
|
|
30618
|
-
|
|
30616
|
+
`You must scan the QR Code`,
|
|
30617
|
+
`Remember that the QR code updates every minute`,
|
|
30618
|
+
`Need help: https://link.codigoencasa.com/DISCORD`,
|
|
30619
30619
|
],
|
|
30620
30620
|
});
|
|
30621
30621
|
WppConnectGenerateImage(base64Qrimg, `${this.globalVendorArgs.name}.qr.png`);
|
|
@@ -30635,11 +30635,10 @@ class WPPConnectProvider extends bot.ProviderClass {
|
|
|
30635
30635
|
}
|
|
30636
30636
|
catch (error) {
|
|
30637
30637
|
this.emit('auth_failure', [
|
|
30638
|
-
`
|
|
30639
|
-
`
|
|
30640
|
-
`
|
|
30641
|
-
`
|
|
30642
|
-
`(Puede abrir un ISSUE) https://github.com/codigoencasa/bot-whatsapp/issues/new/choose`,
|
|
30638
|
+
`Something unexpected has occurred, do not panic`,
|
|
30639
|
+
`Restart the bot`,
|
|
30640
|
+
`You can also check the generated log wppconnect.log`,
|
|
30641
|
+
`Need help: https://link.codigoencasa.com/DISCORD`,
|
|
30643
30642
|
]);
|
|
30644
30643
|
}
|
|
30645
30644
|
};
|
|
@@ -30706,17 +30705,21 @@ class WPPConnectProvider extends bot.ProviderClass {
|
|
|
30706
30705
|
}
|
|
30707
30706
|
};
|
|
30708
30707
|
/**
|
|
30709
|
-
*
|
|
30708
|
+
* @deprecated Buttons are not available in this provider, please use sendButtons instead
|
|
30709
|
+
* @private
|
|
30710
30710
|
* @param {string} number
|
|
30711
30711
|
* @param {string} text
|
|
30712
30712
|
* @param {Array} buttons
|
|
30713
30713
|
* @example await sendButtons("+XXXXXXXXXXX", "Your Text", [{"body": "Button 1"},{"body": "Button 2"}])
|
|
30714
30714
|
*/
|
|
30715
30715
|
this.sendButtons = async (number, text, buttons) => {
|
|
30716
|
-
this.emit('notice',
|
|
30717
|
-
|
|
30718
|
-
|
|
30719
|
-
|
|
30716
|
+
this.emit('notice', {
|
|
30717
|
+
title: 'DEPRECATED',
|
|
30718
|
+
instructions: [
|
|
30719
|
+
`Currently sending buttons is not available with this provider`,
|
|
30720
|
+
`this function is available with Meta or Twilio`,
|
|
30721
|
+
],
|
|
30722
|
+
});
|
|
30720
30723
|
const templateButtons = buttons.map((btn, i) => ({
|
|
30721
30724
|
id: `id-btn-${i}`,
|
|
30722
30725
|
text: btn.body,
|
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,8 @@ declare class WPPConnectProvider extends ProviderClass {
|
|
|
41
41
|
}[];
|
|
42
42
|
initBusEvents: () => void;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* @deprecated Buttons are not available in this provider, please use sendButtons instead
|
|
45
|
+
* @private
|
|
45
46
|
* @param {string} number
|
|
46
47
|
* @param {string} text
|
|
47
48
|
* @param {Array} buttons
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.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B,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builderbot/provider-wppconnect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23-alpha.0",
|
|
4
4
|
"description": "Now I’m the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin’ letters to relatives / Embellishin’ my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Leifer Mendez <leifer33@gmail.com>",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/codigoencasa/bot-whatsapp#readme",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@builderbot/bot": "^1.0.
|
|
28
|
+
"@builderbot/bot": "^1.0.23-alpha.0",
|
|
29
29
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
30
30
|
"@rollup/plugin-json": "^6.1.0",
|
|
31
31
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"body-parser": "^1.20.2",
|
|
53
53
|
"polka": "^0.5.2"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "eda828c77a06b4e0215deb54d3000469c0e2ecb4"
|
|
56
56
|
}
|