SOLVED: Hyperlink in notification to Telegram
Posted: Monday 29 June 2020 22:11
Hi all,
I figured out a way to get a notification from my Telegram bot whenever the doorbell is pressed. I am working on also sending a screenshot from my ESP32CAM interface, in order to directly see who is in front of the door.
Now what I would like to do, is also send a JSON URL Command link with the notification, so whenever you click the link in telegram, it will activate the switch that is connected to a servo which opens the door. This link, however, is a very long JSON URL, something like: http://192.168.1.xx:xxxx/json.htm?type=command¶m=switchlight&idx=xxx&switchcmd=On.
I would like to send a notification like: "Someone is ringing the doorbell [picture]. Open the door? YES" (and then a hyperlink behind the word "YES"). Does anyone know whether there is a possibility to send hyperlinks in domoticz, and not show the super long json url?
Thanks in advance!
Thomas
I figured out a way to get a notification from my Telegram bot whenever the doorbell is pressed. I am working on also sending a screenshot from my ESP32CAM interface, in order to directly see who is in front of the door.
Now what I would like to do, is also send a JSON URL Command link with the notification, so whenever you click the link in telegram, it will activate the switch that is connected to a servo which opens the door. This link, however, is a very long JSON URL, something like: http://192.168.1.xx:xxxx/json.htm?type=command¶m=switchlight&idx=xxx&switchcmd=On.
I would like to send a notification like: "Someone is ringing the doorbell [picture]. Open the door? YES" (and then a hyperlink behind the word "YES"). Does anyone know whether there is a possibility to send hyperlinks in domoticz, and not show the super long json url?
Thanks in advance!
Thomas