Don't have Telegram yet? Try it now!
https://www.ostechnix.com/how-to-repeat-a-command-until-it-succeeds-in-linux/
How To Repeat A Command Until It Succeeds In Linux