mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-02-16 18:31:45 +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
|
```python
|
||||||
TOKEN='YOUR_BOT_TOKEN'
|
TOKEN='YOUR_BOT_TOKEN'
|
||||||
REQUEST_KWARGS={
|
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:
|
# Optional, if you need authentication:
|
||||||
'urllib3_proxy_kwargs': {
|
'urllib3_proxy_kwargs': {
|
||||||
'username': 'PROXY_USER',
|
'username': 'PROXY_USER',
|
||||||
|
|
Loading…
Add table
Reference in a new issue