This commit is contained in:
Dmitry Borisenko
2020-12-16 19:28:44 +01:00
parent 2fc82c3311
commit 8f08459a5a
86 changed files with 17 additions and 3502 deletions

View File

@@ -1,11 +1,12 @@
#ifdef telegram
#include "Consts.h"
#ifdef telegramEnable
#include "Telegram.h"
CTBot* myBot{ nullptr };
void telegramInit() {
if (isTelegramEnabled()) {
telegramInitBeen = true;
sCmd.addCommand("telegram", sendTelegramMsg);
sCmd.addCommand("telegramEnable", sendTelegramMsg);
String token = jsonReadStr(configSetupJson, "telegramApi");
if (!myBot) {
myBot = new CTBot();