@tiledesk/tiledesk-whatsapp-connector 0.1.79 → 0.1.80

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.80",
4
4
  "description": "Tiledesk Whatsapp connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -263,9 +263,9 @@ const path = require('path');
263
263
 
264
264
  if (buttons_count > 10) {
265
265
  // too many buttons
266
- // Option 1: Skip message
266
+ // Option 1: Skip message (current)
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
269
269
 
270
270
  whatsapp_message.text = { body: tiledeskChannelMessage.attributes._raw_message };
271
271
  return null;
@@ -349,7 +349,7 @@ const path = require('path');
349
349
  return whatsapp_message;
350
350
  }
351
351
  }
352
-
352
+
353
353
  async createTemplateMessage(template, receiver, params) {
354
354
 
355
355
  let whatsapp_message = {
@@ -442,7 +442,7 @@ const path = require('path');
442
442
 
443
443
 
444
444
  return whatsapp_message;
445
- }
445
+ }
446
446
 
447
447
  async toTiledesk(whatsappChannelMessage, from, media_url) {
448
448
 
Binary file
Binary file
Binary file