n8n-nodes-whatsapp-buttons
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -16,3 +16,3 @@ "use strict"; | ||
version: 1, | ||
subtitle: "0.1.1", | ||
subtitle: "0.1.3", | ||
description: "Send Message With Buttons", | ||
@@ -82,3 +82,3 @@ defaults: { | ||
show: { | ||
action: ["image"], | ||
action: ["headerAction"], | ||
}, | ||
@@ -164,3 +164,2 @@ }, | ||
}; | ||
console.log(jsonPayload); | ||
if (headerAction == "image") { | ||
@@ -174,3 +173,2 @@ jsonPayload.interactive.header = { | ||
} | ||
console.log(jsonPayload); | ||
if (footer.length > 0) { | ||
@@ -181,3 +179,2 @@ jsonPayload.interactive.footer = { | ||
} | ||
console.log(jsonPayload); | ||
if (queryParameters.length > 0) { | ||
@@ -188,7 +185,7 @@ const parametersArray = queryParameters.map((x) => { | ||
let buttons = []; | ||
parametersArray.forEach((button) => { | ||
parametersArray.forEach((button, index) => { | ||
buttons.push({ | ||
type: "reply", | ||
reply: { | ||
id: button, | ||
id: `button_${index}`, | ||
title: button, | ||
@@ -195,0 +192,0 @@ }, |
{ | ||
"name": "n8n-nodes-whatsapp-buttons", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Encapsulate WhatsApp Business API for sending messages with actions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "n8n-nodes-whatsapp-buttons", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Encapsulate WhatsApp Business API for sending messages with actions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
90942
260