feat: notifikasi admin/monitoring via Telegram (WA fallback); alert staff dialihkan ke Telegram

This commit is contained in:
oxpoe
2026-10-09 09:23:06 +07:00
parent 52f6be26d1
commit e838645531
7 changed files with 35 additions and 9 deletions

View File

@@ -265,7 +265,7 @@ let sendMonitoringAlert = null;
(async () => {
try {
const whatsappBot = await import('../services/whatsappBot.mjs');
sendMonitoringAlert = whatsappBot.sendMonitoringAlert;
sendMonitoringAlert = require('../services/waNotifyService').notifyAdmin;
logger.info('[GenieACS] WhatsApp monitoring alert integration loaded');
} catch (error) {
logger.warn('[GenieACS] WhatsApp bot not available for monitoring alerts');