Don't have Telegram yet? Try it now!
https://kodejava.org/how-do-i-check-if-a-thread-is-alive/
How do I check if a thread is alive?