socks5h protocol added

Dr-Dev 2019-07-28 08:02:16 +04:30
parent 907de7158c
commit 500de45b0a

@ -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',