Telegram button as url/link

Hi,

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).

Is there any way to :

  1. Preferably, link the button “Live Stream” directly to the live-stream url of the camera stream component in HA.
  2. 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.

Thank you very much!

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.

Or send the URL you want in in the message body.

1 Like

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…

Do you have streaming set up for your camera or only still images?

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…

1 Like

I’m no expert on streaming or Telegram (only started using it last week). Hopefully someone else will have some advice.

Hello, it’s been a long time but I’m curious how do you set an inline keyboard callback query to open a lovelace tab view?

1 Like