Telegram function node

Hi! What am I dooing wrong with this?
I can recieve telegrams to Node red but I can't send. But I Dont get any errrors.

My function node looks like this:

var content = "Garageport öppen!"
msg.payload = {"chatid": 123456,
    "type":"message",
    "content":content}
return msg;

Any idea?

What happens if you change that to chatId ?

That did it! A little embarrest that I missed that.
Thanks!

And really not a good idea to post chat id's to an open forum.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.