Formula to Announcement

This commit is contained in:
Luis Fernando Molina committed 2019-10-21 09:24:38 +02:00
1 parent 151b849fe0
commit e09083e9eb
1 file changed
+5 -1
+5 -1
View File
@@ -535,7 +535,11 @@
}
if (socialBot.type === code.botType && socialBot.id === code.botId) {
if (socialBot.type === "Telegram Bot") {
socialBot.botInstance.telegramAPI.sendMessage(socialBot.botInstance.chatId, code.text)
if (announcement.formulaValue !== undefined) {
socialBot.botInstance.telegramAPI.sendMessage(socialBot.botInstance.chatId, announcement.formulaValue)
} else {
socialBot.botInstance.telegramAPI.sendMessage(socialBot.botInstance.chatId, code.text)
}
}
}
} catch (err) {