Telegram Bot Send Image Failed

Hi Guys

I am trying to send image notification using telegram sender node this is the function node code used by me

msg.payload = {
	chatId : -XXXXXXX,
	type :  "photo",
	content: "/share/snapshot_Camera - MediaProfile_Channel1_SubStream1.jpg",
	};
return msg;

Getting the below error in debug

Caught exception in sender node:'Error: ETELEGRAM: 400 Bad Request: URL host is empty'when processing message: {"_msgid":"","payload":{"chatId":-,"type":"photo","content":"/share/snapshot_Camera - MediaProfile_Channel1_SubStream1.jpg","options":{"chat_id":-,"photo":"/share/snapshot_Camera - MediaProfile_Channel1_SubStream1.jpg"}}}
1 Like

as far as i know you can only send images that are available from the web.
That means your HA instance needs to be reachable from the outside.
You can do that with the duckdns url and saving your picture in your www folder.

Then send the payload like this:

{
    "title": "Send an images",
    "message": "That's an example that sends an image.",
    "data": {
        "photo": [
            {
                "url": "https://YOURLOCALDOMAIN.duckdns.org/local/snapshot_Camera - MediaProfile_Channel1_SubStream1.jpg",
                "caption": "YOUR CAPTION"
            }
        ]
    }
}

@AlmostSerious Thanks will give it a try .