How to create msg keys?

ah ok, this rewrite the whole msg.
I could use maybe:

msg.payload = {};
msg.payload.chatId : 11111111111;
msg.payload.type : "message";
msg.payload.content : "Hello World";

or directly:

msg.payload = {};
msg.payload = { chatId : 11111111111 , type : "message" , content : "Hello World" };
1 Like