Go back to most recent Chrome window in correct desktop

Hello, I have a macro that I created where it sends a screenshot to myself on Telegram and is supposed to go back to the most recent app. The only issue is that I have multiple Chrome windows on Desktop 1, 2, 3, & 4, and I have Telegram on Desktop 2. If I took a screenshot on Chrome (in Desktop 1), my macro will send a screenshot to myself on Telegram (in Desktop 2) as it's supposed to do but instead of going back to Desktop 1 Chrome, it activates Desktop 2 Chrome (since telegram is also on Desktop 2). I'm trying to configure my macro so that it activates the correct Chrome window in the correct desktop.

Here is a video of me explaining my issue in case the text I wrote above is not clear.

screenshot & send to telegram.kmmacros (7.2 KB)