Update proxy docs and warn if python-socks is not installed

As suggested in #4505.
This commit is contained in:
Lonami Exo
2025-12-30 11:18:49 +01:00
parent 05b8488858
commit 5efa1fe2ed
6 changed files with 20 additions and 51 deletions
@@ -114,9 +114,6 @@ class InteractiveTelegramClient(TelegramClient):
try:
await self.connect()
except IOError:
# We handle IOError and not ConnectionError because
# PySocks' errors do not subclass ConnectionError
# (so this will work with and without proxies).
print('Initial connection failed. Retrying...')
await self.connect()