Skip to content

Commit 3b46117

Browse files
committed
Updating WhatsApp template parameter value
1 parent cd22e7b commit 3b46117

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

messages/whatsapp/send-media-mtm.rb

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,9 @@
4242
{
4343
type: "body",
4444
parameters: [
45-
{
46-
type: "text",
47-
text: "Value 1"
48-
},
49-
{
50-
type: "text",
51-
text: "Value 2"
52-
},
53-
{
54-
type: "text",
55-
text: "Value 3"
56-
}
45+
"Value 1",
46+
"Value 2",
47+
"Value 3"
5748
]
5849
}
5950
]

messages/whatsapp/send-mtm.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,9 @@
1818
message: {
1919
name: "#{WHATSAPP_TEMPLATE_NAMESPACE}:#{WHATSAPP_TEMPLATE_NAME}",
2020
parameters: [
21-
{
22-
default: "Vonage Verification"
23-
},
24-
{
25-
default: "64873"
26-
},
27-
{
28-
default: "10"
29-
}
21+
"Vonage Verification",
22+
"64873",
23+
"10"
3024
]
3125
},
3226
opts: {

0 commit comments

Comments
 (0)