Merge branch 'main' into codex/change-repo-to-typescript-and-create-type-for-onmessage-even

This commit is contained in:
josedario87
2025-06-04 21:58:01 -06:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import axios from 'axios';
import { WhatsAppMessage } from './types';
import { getHandler, Handler } from './chatHandlers';
const app = express();
const port = Number(process.env.PORT) || 3001;
@@ -116,6 +117,7 @@ app.post('/webhook', async (req: express.Request, res: express.Response) => {
text?: string;
from?: string;
};
const incoming = message || text;
try {
if (!incoming) return res.sendStatus(200);