From d8f5a027766eb4efcba467f56ead1f52e048ffd4 Mon Sep 17 00:00:00 2001 From: julien Date: Tue, 6 May 2025 14:09:49 +0200 Subject: [PATCH] upd8 --- index.js | 46 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/index.js b/index.js index 4f02c65..547a125 100644 --- a/index.js +++ b/index.js @@ -143,24 +143,42 @@ app.post('/sendButtons', async (req, res) => { nativeFlowMessage: { buttons: [ { - name: "cta_reply", - buttonParamsJson: JSON.stringify({ - display_text: "📩 Contacter support", - id: "support_action" - }) + "name": "single_select", + "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\"}]}]}" }, { - "name": "cta_url", - "buttonParamsJson": "{\"display_text\":\"url\",\"url\":\"https://www.google.com\",\"merchant_url\":\"https://www.google.com\"}" - }, + "name": "cta_reply", + "buttonParamsJson": "{\"display_text\":\"quick_reply\",\"id\":\"message\"}" + }, { - name: "cta_call", - buttonParamsJson: JSON.stringify({ - display_text: "📞 Appeler le support", - id: "+33612345678" - }) + "name": "cta_url", + "buttonParamsJson": "{\"display_text\":\"url\",\"url\":\"https://www.google.com\",\"merchant_url\":\"https://www.google.com\"}" + }, + { + "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": "" } - ] + ], } }) }