Attempt 1 at connecting failed: TimeoutError:(使用telethon连接时遇到的异常)
·

使用这个库pip install python-socks[asyncio] -i https://pypi.tuna.tsinghua.edu.cn/simple
只要这样就行了
proxy = (socks.SOCKS5, ‘127.0.0.1’, 10808, True)
TelegramClient(name, api_id、api_hash、代理=代理)
一般windows才会遇到这个问题
更多推荐
所有评论(0)