Telegram message with blocking - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Telegram message with blocking (/showthread.php?tid=4335) |
Telegram message with blocking - AlexLV - 30.10.2022 Hi, Boiler status I receive from powertag, updating periodically. I want message to telegram should be sent only once, when status changed. But my simple script not working, could not find where is the problem.. Can you please check where I am wrong.. Code: require("user.telegram") Alex RE: Telegram message with blocking - admin - 31.10.2022 event.getvalue() does not accept any arguments. You need to use grp.getvalue() for all other groups than the event source. Your script blocks multiple "on" messages but does not block "off" messages. Use this instead: Code: require('user.telegram') RE: Telegram message with blocking - AlexLV - 31.10.2022 Thank you for explanation!! Alex |