Telegram notifications not working

Found something amiss in NEMS? Confirm first that you are running the latest version, and then post your bug report here.
Post Reply
HeikoAdams
Junior Member
Posts: 15
Joined: Mon May 27, 2019 8:39 am

Telegram notifications not working

Post 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.
Mit freundlichen Grüßen
 
Heiko Adams
IT-Administration/-Security
 
flyerwire GmbH
Rosenauer Straße 33
D-96487 Dörfles-Esbach
tel:  (+49) 09561 7948 62
fax:  (+49) 09561 7948 29
fb:  www.facebook.com/flyerwire
web:  www.flyerwire.com
jobs: http://www.flyerwire.com/wirueberuns-jobs.html
Post Reply