From eababbb26bf4d23e5e78b43d38ded6d351cdfc5d Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 2 Dec 2020 12:16:19 +0100 Subject: [PATCH] Bug Fix --- TaskServer/SocialBots.js | 2 +- TaskServer/TelegramBot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TaskServer/SocialBots.js b/TaskServer/SocialBots.js index 58c6ae00d..dc499baee 100644 --- a/TaskServer/SocialBots.js +++ b/TaskServer/SocialBots.js @@ -19,7 +19,7 @@ exports.newSocialBots = function (processIndex) { let socialBot = TS.projects.superalgos.globals.processConstants.CONSTANTS_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_NODE.socialBots.bots[i] if (socialBot.type === "Telegram Bot") { let config = socialBot.config - socialBot.botInstance = TELEGRAM_BOT_MODULE.newTelegramBot() + socialBot.botInstance = TELEGRAM_BOT_MODULE.newTelegramBot(processIndex) socialBot.botInstance.initialize(config.botToken, config.chatId) } } diff --git a/TaskServer/TelegramBot.js b/TaskServer/TelegramBot.js index 76dce4597..0dc924994 100644 --- a/TaskServer/TelegramBot.js +++ b/TaskServer/TelegramBot.js @@ -1,4 +1,4 @@ -exports.newTelegramBot = function newTelegramBot() { +exports.newTelegramBot = function (processIndex) { const MODULE_NAME = 'Telegram Bot'