diff --git a/backend/bots/serverMonitor.js b/backend/bots/serverMonitor.js index ba701da..07fac1f 100644 --- a/backend/bots/serverMonitor.js +++ b/backend/bots/serverMonitor.js @@ -393,7 +393,7 @@ const sendChannelMediaGroup = async (files, caption) => { * Отправить сообщение пользователю */ const sendMessageToUser = async (userId, message) => { - if (!moderationBot) { + if (!TELEGRAM_API) { throw new Error('Бот модерации не инициализирован'); }