@builderbot/provider-meta 1.3.15-alpha.21 → 1.3.15-alpha.23

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.
Files changed (2) hide show
  1. package/dist/index.cjs +2 -1
  2. package/package.json +3 -3
package/dist/index.cjs CHANGED
@@ -26633,7 +26633,8 @@ class MetaProvider extends bot.ProviderClass {
26633
26633
  * })
26634
26634
  */
26635
26635
  this.sendMessageToApi = async (body) => {
26636
- body.to = this.fixPrefixMetaNumber(body.to);
26636
+ if (body.to)
26637
+ body.to = this.fixPrefixMetaNumber(body.to);
26637
26638
  try {
26638
26639
  const fullUrl = `${URL}/${this.globalVendorArgs.version}/${this.globalVendorArgs.numberId}/messages`;
26639
26640
  const response = await axios.post(fullUrl, body, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builderbot/provider-meta",
3
- "version": "1.3.15-alpha.21",
3
+ "version": "1.3.15-alpha.23",
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.3.15-alpha.21",
41
+ "@builderbot/bot": "^1.3.15-alpha.23",
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": "c041d16f1f4375fc371fa0a0470705f4c7583acd"
64
+ "gitHead": "b30f629d6576ae9e9b4f1dc280e7a8b79b1e224d"
65
65
  }