How to remember a state from one flow to another?

in one flow, I receive the status of garage doors like:

Then , in another flow, I recieve a telegram command:
image

how can I respond to that telegram command based on the last state of the door?
Do I store the lat door state in some variable? - and read it in this one? - I see no global variables anywhere.

Repeat the MQTT In node in the telegram flow then use a Join node to combine the telegram and MQTT messages.

See this article in the cookbook for an example of how to join messages into one object.

Thank you!