Telegram notifications not working
Posted: Tue Jun 04, 2019 4:35 am
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
to
solves the problem.
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]
Code: Select all
local chat_id = arg[2]