LonamiWebs / Telethon

Pure Python 3 MTProto API Telegram client library, for bots too!
https://docs.telethon.dev
MIT License
10.02k stars 1.41k forks source link

nothing come through proxy #4431

Open phapntm opened 3 months ago

phapntm commented 3 months ago

Code that causes the issue

async with TelegramClient('sessionfile', proxy=(socks.HTTP, "192.168.1.67", 8888)) as client:
    await client.send_message('me', 'Hello, myself!')

Expected behavior

i use charles proxy to catch the request come through to make sure the client use proxy.

i tried to the working proxy and wrong proxy. charles proxy can capture any request come through proxy and show out.

Actual behavior

the code run successfully but not come through proxy. even working proxy and wrong proxy, the code still run smoothly. charles proxy can not catch any request.

Traceback

No response

Telethon version

1.36.0

Python version

3.10.2

Operating system (including distribution name and version)

window 11

Other details

No response

Checklist

mungabenkiko commented 3 months ago

going through the same -- using SOCKS5

phapntm commented 2 months ago

any idea?

Lonami commented 2 months ago

I did not implement proxy support originally, and have had no interest in maintaining them ever since. So if you're having issues, I encourage you to take a look and diagnose the problem, because I won't in the near future.