global change 1 mb working version

This commit is contained in:
Dmitry Borisenko
2020-12-17 22:48:20 +01:00
parent 2e240def88
commit ce383fe7fe
61 changed files with 265 additions and 255 deletions

View File

@@ -1,6 +1,7 @@
#include "Consts.h"
#ifdef telegramEnable
#include "Telegram.h"
#include "BufferExecute.h"
CTBot* myBot{ nullptr };
void telegramInit() {
@@ -49,7 +50,7 @@ void telegramMsgParse(String msg) {
if (msg.indexOf("set") != -1) {
msg = deleteBeforeDelimiter(msg, "_");
msg.replace("_", " ");
orderBuf += String(msg) + ",";
loopCmdAdd(String(msg) + ",");
myBot->sendMessage(jsonReadInt(configSetupJson, "chatId"), "order done");
SerialPrint("<-", "Telegram", "chat ID: " + String(jsonReadInt(configSetupJson, "chatId")) + ", msg: " + String(msg));
}