SOLVED: Hyperlink in notification to Telegram

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
pianothomas
Posts: 2
Joined: Sunday 29 March 2020 20:32
Target OS: -
Domoticz version:
Contact:

SOLVED: Hyperlink in notification to Telegram

Post by pianothomas »

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&param=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
Last edited by pianothomas on Tuesday 30 June 2020 16:33, edited 1 time in total.
pianothomas
Posts: 2
Joined: Sunday 29 March 2020 20:32
Target OS: -
Domoticz version:
Contact:

Re: Hyperlink in notification to Telegram

Post by pianothomas »

Solved by using python script with Telegram bot with parsemode HTML.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest