Hello There, Guest! Login Register
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Telegram notifications not working

#1
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:
local chat_id = '-' .. arg[2]


to

Code:
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

 Reply
 
 
Forum Jump:

Users browsing this thread: 1 Guest(s)