@builderbot/provider-meta 1.4.1 → 1.4.2-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
CHANGED
|
@@ -25450,9 +25450,12 @@ const processIncomingMessage = async ({ messageId, messageTimestamp, pushName, m
|
|
|
25450
25450
|
break;
|
|
25451
25451
|
}
|
|
25452
25452
|
case 'sticker': {
|
|
25453
|
+
const stickerUrl = await getMediaUrl(version, message.sticker?.id, numberId, jwtToken);
|
|
25453
25454
|
responseObj = {
|
|
25454
25455
|
type: message.type,
|
|
25455
25456
|
from: message.from,
|
|
25457
|
+
url: stickerUrl ?? fileData?.url,
|
|
25458
|
+
fileData,
|
|
25456
25459
|
to,
|
|
25457
25460
|
id: message.sticker.id,
|
|
25458
25461
|
body: bot.utils.generateRefProvider('_event_media_'),
|
|
@@ -25694,6 +25697,7 @@ async function downloadFile(url, Token) {
|
|
|
25694
25697
|
}
|
|
25695
25698
|
catch (error) {
|
|
25696
25699
|
console.error(error.message);
|
|
25700
|
+
throw error;
|
|
25697
25701
|
}
|
|
25698
25702
|
}
|
|
25699
25703
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downloadFile.d.ts","sourceRoot":"","sources":["../../src/utils/downloadFile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAG1C;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,GAAU,UAAU,aAAa,KAAG,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;CAAE,CAO7G,CAAA;AAED,iBAAe,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"downloadFile.d.ts","sourceRoot":"","sources":["../../src/utils/downloadFile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAG1C;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,GAAU,UAAU,aAAa,KAAG,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;CAAE,CAO7G,CAAA;AAED,iBAAe,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAmBtG;AAED,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processIncomingMsg.d.ts","sourceRoot":"","sources":["../../src/utils/processIncomingMsg.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAqB,IAAI,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEvF,eAAO,MAAM,sBAAsB,GAAU,wGAW1C,qBAAqB,KAAG,OAAO,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"processIncomingMsg.d.ts","sourceRoot":"","sources":["../../src/utils/processIncomingMsg.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAqB,IAAI,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEvF,eAAO,MAAM,sBAAsB,GAAU,wGAW1C,qBAAqB,KAAG,OAAO,CAAC,OAAO,CA+KzC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builderbot/provider-meta",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2-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.4.
|
|
41
|
+
"@builderbot/bot": "^1.4.2-alpha.2",
|
|
42
42
|
"@jest/globals": "^30.2.0",
|
|
43
43
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
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": "f11fc19dba603564f37c9c5a84a4c6ba3d37a1c6"
|
|
65
65
|
}
|