From 500de45b0a9b58098e2f39d82fe28cb14d9fc86e Mon Sep 17 00:00:00 2001 From: Dr-Dev Date: Sun, 28 Jul 2019 08:02:16 +0430 Subject: [PATCH] socks5h protocol added --- Working-Behind-a-Proxy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Working-Behind-a-Proxy.md b/Working-Behind-a-Proxy.md index f8ecc2a..16e7fd4 100644 --- a/Working-Behind-a-Proxy.md +++ b/Working-Behind-a-Proxy.md @@ -28,7 +28,7 @@ pip install python-telegram-bot[socks] ```python TOKEN='YOUR_BOT_TOKEN' REQUEST_KWARGS={ - 'proxy_url': 'socks5://URL_OF_THE_PROXY_SERVER:PROXY_PORT', + 'proxy_url': 'socks5 OR socks5h://URL_OF_THE_PROXY_SERVER:PROXY_PORT', # Optional, if you need authentication: 'urllib3_proxy_kwargs': { 'username': 'PROXY_USER',