Hello,
An "mqtt In Node" receives different messages from an MQTT topic.
example:
{"topic":"test/topic_1","payload":"test message 1","qos":0,"retain":false,"_msgid":"90dd8faa.79f8e"}
{"topic":"test/topic_1","payload":"test message 2","qos":0,"retain":false,"_msgid":"7d6b3fe3.e7e8d"}
...
I want to send this message to the "Telegram sender Node". What do I have to write in my "function node" for this to work?
let payload = {"chatId":*********,
type:"message",
content:"---the message should be here---"};
return{payload};
Thank you for your help,