Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nothing come through proxy #4431

Open
3 tasks done
phapntm opened this issue Aug 11, 2024 · 3 comments
Open
3 tasks done

nothing come through proxy #4431

phapntm opened this issue Aug 11, 2024 · 3 comments

Comments

@phapntm
Copy link

phapntm commented Aug 11, 2024

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

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

going through the same -- using SOCKS5

@phapntm
Copy link
Author

phapntm commented Aug 25, 2024

any idea?

@Lonami
Copy link
Member

Lonami commented Aug 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants