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 e9881b6 commit f19ca69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f19ca69

Please sign in to comment.