Get Multiple entity status in one message send to telegram

Hi guys,

I am stuck with configurating a function node whereby it able to capture the status of multiple entity in one message and send to telegram.

So far, my end result would be

From the debug, the system is sending two messages.

  1. with the status of testing 1 and without status of testing 2
  2. without the status of testing 1 and with the status of testing 2.

Is there anyway to code it to send 1 message with the status of both?

Thanks.

You would use a join node to join the messages.
From the docs
https://cookbook.nodered.org/basic/join-streams