@builderbot/provider-meta 1.2.6 → 1.2.7-alpha.2
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 +7 -4
- package/dist/meta/core.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -12409,13 +12409,16 @@ class MetaCoreVendor extends EventEmitter {
|
|
|
12409
12409
|
try {
|
|
12410
12410
|
await Promise.all(messages.map((message) => async () => {
|
|
12411
12411
|
let contact;
|
|
12412
|
-
if (Array.isArray(contacts))
|
|
12413
|
-
;
|
|
12412
|
+
if (Array.isArray(contacts))
|
|
12414
12413
|
[contact] = contacts;
|
|
12415
|
-
}
|
|
12416
12414
|
const to = body.entry[0].changes[0].value?.metadata?.display_phone_number;
|
|
12417
12415
|
const pushName = contact?.profile?.name ?? 'Unknown';
|
|
12418
|
-
const fileData = message?.audio ??
|
|
12416
|
+
const fileData = message?.audio ??
|
|
12417
|
+
message?.image ??
|
|
12418
|
+
message?.video ??
|
|
12419
|
+
message?.document ??
|
|
12420
|
+
message?.sticker ??
|
|
12421
|
+
null;
|
|
12419
12422
|
const response = await processIncomingMessage({
|
|
12420
12423
|
messageId,
|
|
12421
12424
|
messageTimestamp,
|
package/dist/meta/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/meta/core.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAItC,OAAO,KAAK,EAAE,OAAO,EAAsD,MAAM,SAAS,CAAA;AAE1F;;;GAGG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAC5C,KAAK,EAAE,KAAK,CAAA;IAEZ;;;OAGG;gBACS,MAAM,EAAE,KAAK;IAKzB;;;OAGG;IACI,SAAS,EAAE,KAAK,CAAC,UAAU,CAEjC;IAED;;;;;;OAMG;IACI,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO;IAI9E,OAAO,CAAC,aAAa;IAwBrB;;;OAGG;IACI,WAAW,EAAE,KAAK,CAAC,UAAU,CAqBnC;IAED;;;OAGG;IACI,WAAW,EAAE,KAAK,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/meta/core.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAItC,OAAO,KAAK,EAAE,OAAO,EAAsD,MAAM,SAAS,CAAA;AAE1F;;;GAGG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAC5C,KAAK,EAAE,KAAK,CAAA;IAEZ;;;OAGG;gBACS,MAAM,EAAE,KAAK;IAKzB;;;OAGG;IACI,SAAS,EAAE,KAAK,CAAC,UAAU,CAEjC;IAED;;;;;;OAMG;IACI,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO;IAI9E,OAAO,CAAC,aAAa;IAwBrB;;;OAGG;IACI,WAAW,EAAE,KAAK,CAAC,UAAU,CAqBnC;IAED;;;OAGG;IACI,WAAW,EAAE,KAAK,CAAC,UAAU,CAoEnC;IAED;;;;OAIG;IACI,cAAc,YAAa,OAAO,KAAG,OAAO,CAAC,IAAI,CAAC,CASxD;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builderbot/provider-meta",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7-alpha.2",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "vicente1992 <vic_ortiz20@hotmail.es>",
|
|
6
6
|
"homepage": "https://github.com/vicente1992/bot-whatsapp#readme",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"queue-promise": "^2.2.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@builderbot/bot": "^1.2.
|
|
41
|
+
"@builderbot/bot": "^1.2.7-alpha.2",
|
|
42
42
|
"@jest/globals": "^29.7.0",
|
|
43
43
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
44
44
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"tslib": "^2.6.2",
|
|
62
62
|
"tsm": "^2.3.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "752484f4c7e0d5d8ae4c8d365adf674321e549d0"
|
|
65
65
|
}
|