From e09083e9eb9b2b24464c777e55f673b295069a5d Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 21 Oct 2019 09:24:38 +0200 Subject: [PATCH] Formula to Announcement --- Session.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Session.js b/Session.js index eda16a9c8..29d974f0e 100644 --- a/Session.js +++ b/Session.js @@ -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) {