Don't have Telegram yet? Try it now!
https://iphonebyte.com/verification-failed-there-was-an-error-connecting-to-the-apple-id-server/
Verification Failed. There was an error connecting to the Apple ID server - How to fix it