I'm using NR 7.2.10 inside HA and I'd like to send (to Telegram) a snapshopt from my Reolink ipcamera when an event is triggered (MQTT message from BlueIris).
I have success configuring the bot and to send Telegram text messages.
With same script as below, I have success to send a picture if 'content' is a .jpg (or something else) FILE taken from the web
BUT, if I chance content to image from my Reolink camera, content: "http://192.168.1.5/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=123daf&user=USERNAME&password=PASSWORD"
it does not work.
Considering that the address works perfectly in my browser but not in Telegram, I suppose it's due to the fact the link it's not a file... is it correct ?
Probably I should somehow create a picture from camera address and use it for telegram..
How could I do this ?
What I do is to get the image from camera via HTTP node request. In the following node I write the image to /tmp directory and finally I build, in a Function node, the message to Telegram like this: