Don't have Telegram yet? Try it now!
https://kodejava.org/how-do-i-get-the-jframe-of-a-component/
How do I get the JFrame of a component?