This commit is contained in:
Luis Fernando Molina committed 2020-12-02 12:16:19 +01:00
1 parent 9ba720aafb
commit eababbb26b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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)
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
exports.newTelegramBot = function newTelegramBot() {
exports.newTelegramBot = function (processIndex) {
const MODULE_NAME = 'Telegram Bot'