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

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

No files matched your search

+1 -1
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');