trtando de lgoear el debug
All checks were successful
Deploy conversation layer / deploy (push) Successful in 19s
All checks were successful
Deploy conversation layer / deploy (push) Successful in 19s
This commit is contained in:
@@ -111,6 +111,8 @@ async function registerWebhook() {
|
|||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|
||||||
app.post('/webhook', async (req: express.Request, res: express.Response) => {
|
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 { message, text, from } = req.body as { message?: WhatsAppMessage; text?: string; from?: string };
|
||||||
const incoming = message || text;
|
const incoming = message || text;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user