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