Skip to content

Commit

Permalink
Update logging testing
Browse files Browse the repository at this point in the history
  • Loading branch information
schwasa committed May 30, 2024
1 parent 02e6ade commit e9881b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ app.get('/', (req, res) => {
app.post('/webhook', async (req, res) => {
// Parse the request body from the POST
let body = req.body
console.log('Incoming post request at /webhook:', req.body.entry[0].changes[0].value.messages[0].text.body);
let incoming_message = req.body.entry[0].changes[0].value.messages[0].text.body
console.log('Incoming post request at /webhook:', incoming_message)

// Check the Incoming webhook message
// info on WhatsApp text message payload: https://developers.facebook.com/docs/whatsapp/cloud-api/webhooks/payload-examples#text-messages
Expand Down

0 comments on commit e9881b6

Please sign in to comment.