Telegram Plug-in to send text, images and video notifications
-
Will do, thanks! Any plans on getting this one into AltAppstore?
-
Uh oh, I was sure it already was. I’ll add lately.
-
FYI, Reactor's direct support for your plugin (in the Notify action) is now available in 3.9-20321, the stable branch release (so in AltUI, go to Plugins, and on the Reactor row enter "stable" as the version and click the update button).
-
Contact!
Had to make a new token to make it work, theres no expiry of them, i hope?
Now i have to learn how to send "special" characters, it didnt even like "!".. But i don't intend to yell in my notifications anyway.
Sent one from reactor too Patrick.
To all you developer guys; Awesome job! thankyou for making this great HA system! Hope to join in on making some contributions myself.
-
didn't find the Message function in this forum, and couldn't send pictures in "chat":
@toggledbits , there's a small UI bug in the stable release:
Other than that, its f**in awesome.
-
I can't reproduce it. What version of AltUI are you on? (see More > Plugins)
-
@perh said in Telegram Plug-in to send text, images and video notifications:
Now i have to learn how to send "special" characters, it didnt even like "!"
It should work out of the box. I have emojis in my notifications and they are correctly encoded.
-
Thats weird, this is the error i get with "Hello!" :
luup_log:755: VeraTelegram(nil@194): executeCommand("curl -k -H 'Content-type: application/json' 'https://api.telegram.org/botXX:XX/sendMessage?parse_mode=MarkdownV2&chat_id=-362200779&text=Hello%21&disable_notification=false'"): "{\"ok\":false,\"error_code\":400,\"description\":\"Bad Request: can't parse entities: Character '!' is reserved and must be escaped with the preceding '\\\\'\"}"
-
therealdbreplied to PerH on Nov 17, 2020, 7:36 AM last edited by therealdb Nov 17, 2020, 2:37 AM
@perh Yep, I tracked it down on the other forum as well. As a temporary solution, set Format parameter to Markdown. I defaulted to MarkdownV2, but
_ * [ ] ( ) ~ > # + - = | { } . !
should be escaped and I didn't pay attention to this. Sorry, I'll push an update to GitHub very soon, to default to Markdown anyway.
-
@toggledbits
I've got something similar. Running ALTUI 2.50.2549 (from the bottom banner)
Installed the Reactor.stable branch for the Pushover enhancements.
Oddly, although my Plugins tab for Reactor reads GitHub.stable, my Reactor Logic Summary page notes:Version: 3.9develop-20318.1220 config 20263 cdata 20045 ui 20190 pluginDevice 98 LuaXP 1.0.2enh
-
That's correct. The stable branch is a development branch, so it will have development tagging on the versions. The stable branch is updated when work from development is tested and passes.
-
I'm seeing this as well with the dropdowns in both Firefox and Chrome. Running stable version of Reactor and v2.50 of ALTUI
-
The issue is resolved in the new "stable" version.
Perhaps this discussion should be moved from this Telegram thread? it's not really related.
-
@therealdb done
-
@therealdb
Sorry db, thanks PerH - 'nuff said, properly chastened
-
I have set this up for some text notifications and it is working as it should, thanks for a very nice plugin!
With the added support in Reactor it makes a nice pair!I also tested sending an image (in the format http://url/folder/image.jpg) and it works as specified in the users guide on github.
What I cannot get to work however is when the url to the image contains user and login, which is required to get an image from my cameras.
I.e. the url to the image is :http://user:passwd@192.168.x.y/jpg/image.jpg
.
I have tried encoding it withhttps://www.urlencoder.org/
, but it does not seem to work.Any ideas on how to solve this?
//ArcherS