tambahannya

This commit is contained in:
bipproduction
2025-10-23 17:49:27 +08:00
parent fb5e1c81f1
commit 603decd109

View File

@@ -187,6 +187,9 @@ async function flowAiImage({
}
}
const WaHookRoute = new Elysia({
prefix: "/wa-hook",
tags: ["WhatsApp Hook"],
@@ -237,6 +240,7 @@ const WaHookRoute = new Elysia({
const webhook = client.parseWebhook(body);
logger.info(`[POST] Webhook Type: ${webhook[0]?.type}`);
console.log("ada data masuk ...", webhook[0]?.type)
if (webhook[0]?.type === WhatsAppMessageType.TEXT) {
const messageQuestion = webhook[0]?.text;