@tiledesk/tiledesk-whatsapp-connector 0.1.79 → 0.1.81

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/index.js CHANGED
@@ -721,7 +721,7 @@ router.post("/tiledesk", async (req, res) => {
721
721
  return res.sendStatus(200);
722
722
  }
723
723
  }).catch((err) => {
724
- winston.error("(wab) send message error: ", err);
724
+ winston.error("(wab) send message error: ", err.response.data);
725
725
  });
726
726
  } else {
727
727
  winston.error("(wab) WhatsappJsonMessage is undefined!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-whatsapp-connector",
3
- "version": "0.1.79",
3
+ "version": "0.1.81",
4
4
  "description": "Tiledesk Whatsapp connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -265,8 +265,10 @@ const path = require('path');
265
265
  // too many buttons
266
266
  // Option 1: Skip message
267
267
  // Option 2: Cut buttons array -> display first 10 buttons only
268
- // Option 3: Send message with *buttons (questa)
268
+ // Option 3: Send message with *buttons (current)
269
269
 
270
+ // Warning: NOT WORKING PROPERLY
271
+ // _raw_message is undefined due to last changes on tiledesk-chatbot
270
272
  whatsapp_message.text = { body: tiledeskChannelMessage.attributes._raw_message };
271
273
  return null;
272
274
  }
@@ -349,7 +351,7 @@ const path = require('path');
349
351
  return whatsapp_message;
350
352
  }
351
353
  }
352
-
354
+
353
355
  async createTemplateMessage(template, receiver, params) {
354
356
 
355
357
  let whatsapp_message = {
@@ -442,7 +444,7 @@ const path = require('path');
442
444
 
443
445
 
444
446
  return whatsapp_message;
445
- }
447
+ }
446
448
 
447
449
  async toTiledesk(whatsappChannelMessage, from, media_url) {
448
450
 
Binary file