telegram-bot icon indicating copy to clipboard operation
telegram-bot copied to clipboard

Add set_proxy_auth to client initialization if proxy auth is required

Open unavailabl3 opened this issue 6 years ago • 2 comments

This update is to add proxy authorization featrue to http client initialization. After it only need to add three environments:

HTTP_PROXY=http://1.2.3.4:5678
HTTP_PROXY_USER=username_for_proxy
HTTP_PROXY_PASSWORD=password_for_proxy

It made with the help of HTTPClient documentation httpclient#set_proxy_auth

unavailabl3 avatar Nov 07 '19 11:11 unavailabl3

Hi, and thank you for the contribution!

Is it possible to pass credentials like HTTP_PROXY=http://username_for_proxy:[email protected]:5678?

printercu avatar Nov 07 '19 12:11 printercu

Yes, it is possible I think you can write about it in gem docs. It is very useful for countries where Telegram blocked

unavailabl3 avatar Nov 07 '19 13:11 unavailabl3