upd8
This commit is contained in:
parent
c98f4c2250
commit
d8f5a02776
46
index.js
46
index.js
@ -143,24 +143,42 @@ app.post('/sendButtons', async (req, res) => {
|
|||||||
nativeFlowMessage: {
|
nativeFlowMessage: {
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: "cta_reply",
|
"name": "single_select",
|
||||||
buttonParamsJson: JSON.stringify({
|
"buttonParamsJson": "{\"title\":\"title\",\"sections\":[{\".menu\":\".play dj webito\",\"highlight_label\":\"label\",\"rows\":[{\"header\":\"header\",\"title\":\"title\",\"description\":\"description\",\"id\":\"id\"},{\"header\":\"header\",\"title\":\"title\",\"description\":\"description\",\"id\":\"id\"}]}]}"
|
||||||
display_text: "📩 Contacter support",
|
|
||||||
id: "support_action"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "cta_url",
|
"name": "cta_reply",
|
||||||
"buttonParamsJson": "{\"display_text\":\"url\",\"url\":\"https://www.google.com\",\"merchant_url\":\"https://www.google.com\"}"
|
"buttonParamsJson": "{\"display_text\":\"quick_reply\",\"id\":\"message\"}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "cta_call",
|
"name": "cta_url",
|
||||||
buttonParamsJson: JSON.stringify({
|
"buttonParamsJson": "{\"display_text\":\"url\",\"url\":\"https://www.google.com\",\"merchant_url\":\"https://www.google.com\"}"
|
||||||
display_text: "📞 Appeler le support",
|
},
|
||||||
id: "+33612345678"
|
{
|
||||||
})
|
"name": "cta_call",
|
||||||
|
"buttonParamsJson": "{\"display_text\":\"call\",\"id\":\"message\"}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "cta_copy",
|
||||||
|
"buttonParamsJson": "{\"display_text\":\"copy\",\"id\":\"123456789\",\"copy_code\":\"message\"}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "cta_reminder",
|
||||||
|
"buttonParamsJson": "{\"display_text\":\"Recordatorio\",\"id\":\"message\"}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "cta_cancel_reminder",
|
||||||
|
"buttonParamsJson": "{\"display_text\":\"cta_cancel_reminder\",\"id\":\"message\"}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "address_message",
|
||||||
|
"buttonParamsJson": "{\"display_text\":\"address_message\",\"id\":\"message\"}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "send_location",
|
||||||
|
"buttonParamsJson": ""
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user