@victorhalla/n8n-nodes-wwebjsapi 1.0.8 → 1.0.9

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.
@@ -1350,7 +1350,7 @@ class WWebjsApi {
1350
1350
  required: false,
1351
1351
  description: "The content of the message, can be a string or an object",
1352
1352
  typeOptions: { rows: 2 },
1353
- hint: "Enter as JSON",
1353
+ hint: "Text message, or JSON object for media/location/contact",
1354
1354
  displayOptions: { show: { resource: ["Client"], operation: ["postClientSendMessage"] } },
1355
1355
  },
1356
1356
  {
@@ -4119,7 +4119,7 @@ class WWebjsApi {
4119
4119
  required: false,
4120
4120
  description: "The content of the message, can be a string or an object",
4121
4121
  typeOptions: { rows: 2 },
4122
- hint: "Enter as JSON",
4122
+ hint: "Text message, or JSON object for media/location/contact",
4123
4123
  displayOptions: { show: { resource: ["Message"], operation: ["postMessageReply"] } },
4124
4124
  },
4125
4125
  {
@@ -4832,7 +4832,7 @@ class WWebjsApi {
4832
4832
  required: false,
4833
4833
  description: "The content of the message, can be a string or an object",
4834
4834
  typeOptions: { rows: 2 },
4835
- hint: "Enter as JSON",
4835
+ hint: "Text message, or JSON object for media/location/contact",
4836
4836
  displayOptions: { show: { resource: ["ChannelChat"], operation: ["postChannelSendMessage"] } },
4837
4837
  },
4838
4838
  {
@@ -5539,11 +5539,11 @@ class WWebjsApi {
5539
5539
  body: {
5540
5540
  chatId: this.getNodeParameter("body_chatId", i),
5541
5541
  contentType: this.getNodeParameter("body_contentType", i),
5542
- content: (() => { try {
5543
- return JSON.parse(this.getNodeParameter("body_content", i));
5542
+ content: (() => { const v = this.getNodeParameter("body_content", i); try {
5543
+ return JSON.parse(v);
5544
5544
  }
5545
5545
  catch {
5546
- return {};
5546
+ return v;
5547
5547
  } })(),
5548
5548
  options: (() => { try {
5549
5549
  return JSON.parse(this.getNodeParameter("body_options", i));
@@ -6560,11 +6560,11 @@ class WWebjsApi {
6560
6560
  body: {
6561
6561
  chatId: this.getNodeParameter("body_chatId", i),
6562
6562
  contentType: this.getNodeParameter("body_contentType", i),
6563
- content: (() => { try {
6564
- return JSON.parse(this.getNodeParameter("body_content", i));
6563
+ content: (() => { const v = this.getNodeParameter("body_content", i); try {
6564
+ return JSON.parse(v);
6565
6565
  }
6566
6566
  catch {
6567
- return {};
6567
+ return v;
6568
6568
  } })(),
6569
6569
  options: (() => { try {
6570
6570
  return JSON.parse(this.getNodeParameter("body_options", i));
@@ -7852,11 +7852,11 @@ class WWebjsApi {
7852
7852
  chatId: this.getNodeParameter("body_chatId", i),
7853
7853
  messageId: this.getNodeParameter("body_messageId", i),
7854
7854
  contentType: this.getNodeParameter("body_contentType", i),
7855
- content: (() => { try {
7856
- return JSON.parse(this.getNodeParameter("body_content", i));
7855
+ content: (() => { const v = this.getNodeParameter("body_content", i); try {
7856
+ return JSON.parse(v);
7857
7857
  }
7858
7858
  catch {
7859
- return {};
7859
+ return v;
7860
7860
  } })(),
7861
7861
  options: (() => { try {
7862
7862
  return JSON.parse(this.getNodeParameter("body_options", i));