mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 08:37:07 +01:00
socks5h protocol added
parent
907de7158c
commit
500de45b0a
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue