This commit is contained in:
Dmitry Borisenko
2020-12-15 22:10:40 +01:00
parent 9fd88ffae1
commit 9934690d0a
9 changed files with 19 additions and 11 deletions

View File

@@ -76,7 +76,9 @@ void sendTelegramMsg() {
static String prevMsg;
if (prevMsg != msg) {
prevMsg = msg;
myBot->sendMessage(jsonReadInt(configSetupJson, "chatId"), msg);
if (msg != "na") {
myBot->sendMessage(jsonReadInt(configSetupJson, "chatId"), msg);
}
SerialPrint("<-", "Telegram", "chat ID: " + String(jsonReadInt(configSetupJson, "chatId")) + ", msg: " + msg);
}
}