tambahannya

This commit is contained in:
bipproduction
2025-10-22 22:00:16 +08:00
parent 47798adf5a
commit 3dfb6963fc
2 changed files with 14 additions and 3 deletions

View File

@@ -99,3 +99,13 @@
{"level":30,"time":"2025-10-22T04:51:13.909Z","pid":64348,"hostname":"air-malik","msg":"WA API initialized"}
{"level":30,"time":"2025-10-22T04:51:30.228Z","pid":64348,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T04:51:30.238Z","pid":64348,"hostname":"air-malik","msg":"WA API initialized"}
{"level":30,"time":"2025-10-22T13:59:25.064Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T13:59:44.593Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T13:59:45.696Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T13:59:46.930Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T13:59:48.433Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T13:59:49.785Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T13:59:57.318Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T13:59:59.249Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T14:00:02.944Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}
{"level":30,"time":"2025-10-22T14:00:14.934Z","pid":98844,"hostname":"air-malik","msg":"WA API started"}

View File

@@ -10,9 +10,10 @@ import { logger } from "../lib/logger";
import { WhatsAppClient, WhatsAppMessageType } from 'whatsapp-client-sdk';
const client = new WhatsAppClient({
accessToken: 'your-access-token', // Required: Get from Meta Developer Console
phoneNumberId: 'your-phone-number-id', // Required: Your WhatsApp Business phone number ID
webhookVerifyToken: 'your-verify-token' // Required: For receiving messages
accessToken: process.env.WA_TOKEN!,
phoneNumberId: process.env.WA_PHONE_NUMBER_ID!,
webhookVerifyToken: process.env.WA_WEBHOOK_TOKEN!
});