Is there any way to make the telegram button on the chatbot as a URL? The use case is that I have notification in my telegram that show picture and send 10s video from camera outside when someone pressed the doorbell (screenshot).
Preferably, link the button “Live Stream” directly to the live-stream url of the camera stream component in HA.
Or if number 1 is not available, at least send me to the lovelace tab where I have live camera stream shown.
I’ve checked telegram chatbot and notification docs and didn’t find anything about button as URL. However, I’ve checked telegram bot official docs and I see one usage of the button to send clicker to specific URL… Please do let me know if it’s doable in HA.
Not sure about the button but you can send a link direct to the streaming URL for video: Telegram - Home Assistant (ugh! the in page link is duplicated. Scroll down to the video section and look for URL).
Configuration Variables
url
(string)(Required)A remote path to an video. Either this or the file configuration option is required.
Hi, thanks for quick reply! CMIIW, but the ‘url’ is only used to refer to the recorded stream. I have a 10s recorded stream, and I used ‘file’ (which according to the docs, should be OK as well).
In term of “live streaming URL”, I can’t get the working live stream URL. I’ve looked in the entity state pages down where my camera component is setup (screenshot below). I tried to use the url (https://mydomain.duckdns.org:8123/api/camera…), but I got only the still images, not the live streaming…
If I inspect the live streaming using chrome dev-tools (like screenshot below), I can see a full path to the streaming URL. However, copy and paste that URL to browser directly result in 404 error not found, probably due to the constantly changing token in the last part of the URL…
Yes, I do have live streaming and still images work perfectly inside HA. I just can’t extract the live-streaming URL to be sent over to telegram chatbot…
Is this a security feature of streaming component? So maybe another alternative is just to send the clicker to the lovelace tab URL… ?
Yes, I’ve read that… I’ve set the stream component and it works perfectly right now. I guess the only way right now with current version of telegram chatbot component is to send lovelace cctv tab URL as text-message… Thank you for helping me out…