diff --git a/whatsapp-router/src/index.ts b/whatsapp-router/src/index.ts index ed9f069..1490b61 100644 --- a/whatsapp-router/src/index.ts +++ b/whatsapp-router/src/index.ts @@ -111,6 +111,8 @@ async function registerWebhook() { app.use(express.json()); app.post('/webhook', async (req: express.Request, res: express.Response) => { + log('info', 'webhook received'); + const { message, text, from } = req.body as { message?: WhatsAppMessage; text?: string; from?: string }; const incoming = message || text;