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) {