windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
256 stars 117 forks source link

Sending Photos - payload.type is empty error #363

Closed MatterSec closed 4 months ago

MatterSec commented 4 months ago

Currently unable to get Telegram Sender to send a photo. I have a function with it's content below, but the telegram sender is displaying an error of "msg.payload.type is empty". Currently unable to figure out where this error is coming from as the payload.type is there and double checked..

The .jpg in the URL path works when browsing and tried without the IP and just /www/...

Thanks

image

Function: msg.payload.content = 'http:///local/notifications/doorbellpress.jpg'; msg.payload.type = 'photo'; msg.payload.caption = "Someone is at the front door" return msg;

windkh commented 4 months ago

https://github.com/windkh/node-red-contrib-telegrambot/blob/master/examples/sendphoto.json