mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 03:49:13 +03:00
правка сообщения в телеграм
This commit is contained in:
@@ -82,7 +82,7 @@ class LogingDaily : public IoTItem {
|
|||||||
float difference = currentValue - prevValue;
|
float difference = currentValue - prevValue;
|
||||||
|
|
||||||
if (telegram == 1) {
|
if (telegram == 1) {
|
||||||
String msg = descr + " " + String(currentValue) + " " + String(difference);
|
String msg = descr + ": total " + String(currentValue) + ", consumed " + String(difference);
|
||||||
for (std::list<IoTItem *>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it) {
|
for (std::list<IoTItem *>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it) {
|
||||||
if ((*it)->getSubtype() == "TelegramLT" || "Telegram") {
|
if ((*it)->getSubtype() == "TelegramLT" || "Telegram") {
|
||||||
(*it)->sendTelegramMsg(false, msg);
|
(*it)->sendTelegramMsg(false, msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user