From f19ca697b6ae25423de9a18dfbe4b815b261a091 Mon Sep 17 00:00:00 2001 From: schwasa <102740850+schwasa@users.noreply.github.com> Date: Thu, 30 May 2024 17:20:55 +0200 Subject: [PATCH] Update Logging Testing --- app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.js b/app.js index 9bc02f2..352a02d 100644 --- a/app.js +++ b/app.js @@ -51,8 +51,7 @@ app.get('/', (req, res) => { app.post('/webhook', async (req, res) => { // Parse the request body from the POST let body = req.body - let incoming_message = req.body.entry[0].changes[0].value.messages[0].text.body - console.log('Incoming post request at /webhook:', incoming_message) + console.log('Incoming post request at /webhook:'); // Check the Incoming webhook message // info on WhatsApp text message payload: https://developers.facebook.com/docs/whatsapp/cloud-api/webhooks/payload-examples#text-messages