Visitar URL original
Add support for MTProxy servers · Issue #90 · pyrogram/pyrogram · GitHub
The Wayback Machine - https://web.archive.org/web/20201210055036/https://github.com/pyrogram/pyrogram/issues/90
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

Add support for MTProxy servers #90

Open
drinks5 opened this issue Jun 19, 2018 · 5 comments
Open

Add support for MTProxy servers #90

drinks5 opened this issue Jun 19, 2018 · 5 comments

Comments

@drinks5
Copy link

@drinks5 drinks5 commented Jun 19, 2018

Hi, this is a nice project, and could I use this project connect with my mtproto proxy server??? Thx!

@delivrance
Copy link
Member

@delivrance delivrance commented Jun 19, 2018

@drinksober Hi, and thanks! Currently the only option is to use SOCKS5 proxies only. MTProto proxies are a relatively new thing and as soon as I find out how to implement a proxy client (or someone proposes ideas/PR on how to) I'll happily add support for it.

@delivrance delivrance changed the title Connect my mtproto proxy server Add support for MTProxy servers Jun 19, 2018
@AmirSbss
Copy link

@AmirSbss AmirSbss commented Apr 20, 2019

Hi, Telethon added this feature a long time ago
LonamiWebs/Telethon#1107
When we can use it on pyrogram?

@delivrance
Copy link
Member

@delivrance delivrance commented Apr 20, 2019

@AmirSbss Hi. This could happen as soon as anyone that's in real need of this feature or is willing to learn how it works will eventually implement a good working concept and propose the changes via PR.

@knowledgecomputer2018
Copy link

@knowledgecomputer2018 knowledgecomputer2018 commented Nov 6, 2020

hi how are you . i have error "ConnectionError: Connection to Telegram failed 5 time(s)"
i use free proxy very much but again i have it above error .
#............
host="198.16.66.197"
port=8080
proxy=(socks.SOCKS5,host,port)
client = TelegramClient('session', api_id, api_hash,proxy=proxy)
client.start()
client.connect()
#..........................
i change socks.http,socks.SOCKS5 but i can not connect to telegram .
#..........
i set my host to vpn extension google chrome but i can not connect to telegram with above code .
#..........
i set above host ,port in desktop telegram but i can not connect to desktop telegram .

my location is iran .

god willing

@ColinTheShark
Copy link
Member

@ColinTheShark ColinTheShark commented Nov 9, 2020

Hi @knowledgecomputer2018,

Your code looks very much like it would come from Telethon. Since this is Pyrogram, we can't really offer support for you.
Try asking over at Telethon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.