Help with creating a function node for telegram notification

I just installed telegram at HA en try to send a message to my bot.
I don’t succeed creating a function node sending a message.
It is giving a red triangle and deploy giving an error.
What am I doing wrong?
I’m not a JSON expert

What is the function look like if I want to send an IP camera snapshot (passwd protected)?


i think you are not using the correct quotation marks. you need to use ' or "

msg.payload = {};
msg.payload.type = "message";
msg.payload.content = 'hello from node-red'
return msg;

this is how it looks

also, based on this information here, I think you need to construct like this but you can make sure by first testing in developer tools with service call parameters and adapt the structure in node-red. = 'your message' = 
1 Like

Thank you very much.
The quotation was the solution.
I didn’t know type was important

The photo part is not working