Using two relays on one ESP-01 using MQTT

Is there a solution for the ESP to distinguish a simple true/false ?

You already know the answer to that. Yes, it can distinguish true and false. But, it can't guess which relay you mean to turn on when it gets true.