How to change the payload so it can be sent via telegram

javascript coding to change msg.payload to "content",


It should be something like this;
To much quotation marks in your data names now.

msg.payload = {chatId :12345678,
                 type : 'message',
              content : msg.payload};

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