I am trying to use the telegram service in one of my rules. I configured the rule in the rule engine in the paperUI. It triggers
when: item state of my phone changes to offline -> enable motion detection on a zoneminder monitor. AND execute given script: sendTelegram(“bot1”,“some message”)
In my services/addons.cfg I have “action = telegram”
And this is my telegram.cfg
action = telegram bots=bot1 bot1.chatId=xxxxxxx bot1.token=xxxxxxxxxxxx
I get the following error message:
2018-03-13 15:27:06.245 [ERROR] [internal.handler.ScriptActionHandler] - Script execution failed: ReferenceError: “sendTelegram” is not defined in at line number 1
What am I missing? Is the sendTelegram() command not usable from the paperUI rule engine?