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
@@ -943,7 +943,7 @@ async function autoDeactivateOverdueCustomers(months = 3, actor = null) {
const parts = [];
if (processed) parts.push(`${processed} pelanggan NONAKTIF (menunggak ${m} bln)`);
if (removed.length) parts.push(`${removed.length} pelanggan DIHAPUS (menunggak > ${m} bln)`);
await waNotify.sendToStaff(`📋 *Auto-Tunggakan*
await waNotify.notifyAdmin(`📋 *Auto-Tunggakan*
${parts.join('; ')}.
Nonaktif: ${names.join(', ') || '-'}