Telethon icon indicating copy to clipboard operation
Telethon copied to clipboard

nothing come through proxy

Open phapntm opened this issue 6 months ago • 3 comments

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

  • [X] The error is in the library's code, and not in my own.
  • [X] I have searched for this issue before posting it and there isn't an open duplicate.
  • [X] I ran pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip and triggered the bug in the latest version.

phapntm avatar Aug 11 '24 13:08 phapntm