Page 1 of 1

Telegram notifications not working

Posted: Tue Jun 04, 2019 4:35 am
by HeikoAdams
Environment: NEMS 1.5 Build 7 on RPi

Telegram notifications don't  work in some cases because telegram chat ids aren't allways negative but notify-by-telegram.lua allways prefixes the chat-id with an "-".
Modifying the script by changing

Code: Select all

local chat_id = '-' .. arg[2]
to

Code: Select all

local chat_id = arg[2]
solves the problem.