From 919b13a38c25cf06d89062ec297bebb0c725b4da Mon Sep 17 00:00:00 2001 From: Xtao_dada Date: Sat, 19 Jun 2021 22:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20http=20proxy=20error.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿ› ไฟฎๅค http ไปฃ็†ๅŠŸ่ƒฝๆ‰‹ๆ‰“ๅ‡บ้”™ใ€‚ --- pagermaid/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index ce6bbf0..38ea324 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -160,7 +160,7 @@ elif not http_addr == '' and not http_port == '': import python_socks bot = TelegramClient("pagermaid", api_key, api_hash, auto_reconnect=True, - proxy=(python_socks.ProxyType.HTTP, proxy_addr, int(proxy_port))) + proxy=(python_socks.ProxyType.HTTP, http_addr, int(http_port))) except: bot = TelegramClient("pagermaid", api_key, api_hash, auto_reconnect=True) elif not mtp_addr == '' and not mtp_port == '' and not mtp_secret == '':