new NextionUpload + Telegram_v2

This commit is contained in:
Mit4el
2023-11-13 23:55:05 +03:00
parent 8ae5c07302
commit 5f1a9b23e5
5 changed files with 233 additions and 3 deletions

View File

@@ -240,11 +240,12 @@ public:
}
else if (msg.text.indexOf("nextion") != -1 && msg.chatID == _chatID)
{
if (downloadFile(msg))
{
// flashNextion();
for (std::list<IoTItem *>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it) {
if ((*it)->getSubtype() == "NextionUpload") {
(*it)->uploadNextionTlgrm(msg.fileUrl);
}
}
}
}
else if (msg.text.indexOf("help") != -1)
{