使用电视/袜子躲在代理后面
当我使用这些凭据和IP地址签名时,我的手机上的电报检测我的真实IP。我尝试了GitHub Telethon上的封闭问题,因此代理服务器似乎运行良好,因为我运行了NMAP扫描并使用CLI进行了ping
from telethon.sync import TelegramClient, events
api_id = ''
api_hash = ''
with TelegramClient('Socheen', api_id, api_hash, proxy = {
'proxy_type': 'socks5',
'addr': '208.102.51.6',
'port': 58208,
'rdns': True
}) as client:
client.send_message('me', 'Hello, myself!')
client.loop.run_until_complete(client.send_message('me', 'Hello, myself!'))
When i sign in using these credentials and ip address, telegram on my cell phone detects my real ip. I tried closed issues on github telethon, the proxy server seems to be running fine since i ran nmap scan as well as pinged it using CLI
from telethon.sync import TelegramClient, events
api_id = ''
api_hash = ''
with TelegramClient('Socheen', api_id, api_hash, proxy = {
'proxy_type': 'socks5',
'addr': '208.102.51.6',
'port': 58208,
'rdns': True
}) as client:
client.send_message('me', 'Hello, myself!')
client.loop.run_until_complete(client.send_message('me', 'Hello, myself!'))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用其他语法进行代理:
我没有使用Sock5代理,但是我使用了HTTP/HTTPS代理,它们工作正常。
You should use a different syntax for the proxy:
I haven't used Sock5 proxies but I've used HTTP/HTTPS proxies and they work fine.