@
ronman 开了 ssr 后在 Telegram 自定义代理里面试了 127.0.0.1,1080,软件都可以用 脚本就不行,能告诉我你用的什么代理吗?
Traceback (most recent call last):
File "C:\Users\Aistv\Desktop\scripts-master\
download-telegram-channel-pictures.py", line 19, in <module>
client = TelegramClient('my_session',api_id=api_id,api_hash=api_hash,proxy=proxy).start()
File "C:\Users\Aistv\AppData\Roaming\Python\Python38\site-packages\telethon\client\
auth.py", line 132, in start
else self.loop.run_until_complete(coro)
File "C:\Users\Aistv\AppData\Local\Programs\Python\Python38\lib\asyncio\
base_events.py", line 612, in run_until_complete
return future.result()
File "C:\Users\Aistv\AppData\Roaming\Python\Python38\site-packages\telethon\client\
auth.py", line 139, in _start
await self.connect()
File "C:\Users\Aistv\AppData\Roaming\Python\Python38\site-packages\telethon\client\
telegrambaseclient.py", line 439, in connect
if not await self._sender.connect(self._connection(
File "C:\Users\Aistv\AppData\Roaming\Python\Python38\site-packages\telethon\network\
mtprotosender.py", line 124, in connect
await self._connect()
File "C:\Users\Aistv\AppData\Roaming\Python\Python38\site-packages\telethon\network\
mtprotosender.py", line 237, in _connect
raise ConnectionError('Connection to Telegram failed %d time(s)', self._retries)
ConnectionError: [Errno Connection to Telegram failed %d time(s)] 5
>>>