Implements a Proxy Integration#2
Conversation
Now, you can use HTTP or SOCKS5 proxies with this bot. In config.yaml under telegram add the two following lines: http_proxy: http://user:pass@proxy.com:3128 https_proxy: http://user:pass@proxy.com:3128 If you are using SOCKS5 proxy, the lines looks like this: http_proxy: socks5://user:pass@proxy.com:3128 https_proxy: socks5://user:pass@proxy.com:3128 Maybe you have to run the following line to install socks-compability: pip install requests[socks]
|
Hey! When I tried this "pip install requests[socks]", I got this )=
|
|
Without installation socks-compability, I have error in Telegram-Octoprint plugin page:
|
Now, you can use HTTP or SOCKS5 proxies with this bot.
In config.yaml under telegram add the two following lines:
http_proxy: http://user:pass@proxy.com:3128
https_proxy: http://user:pass@proxy.com:3128
If you are using SOCKS5 proxy, the lines looks like this:
http_proxy: socks5://user:pass@proxy.com:3128
https_proxy: socks5://user:pass@proxy.com:3128
Maybe you have to run the following line to install socks-compability:
pip install requests[socks]