telegram-bot-ruby
telegram-bot-ruby copied to clipboard
use proxy feature
In connection with the blocking of Telegram in Russia, the possibility of using a proxy is very important. It solve how to substitute the https://api.telegram.org end-point with proxy? #63 issue
Great, but monkey-patching Faraday::Adapter::NetHttp is a really bad idea. WDYT about subclass or some another way?
It is still relevant? Telegram seems to work fine despite of any blocks, doesn't it?
Some Internet providers still work intermittently
Anyway i'm not really happy about such workarounds in the gem. Why not to implement your own Faraday adapter? You always can pass it as an argument.
We can only transfer the adapter type but not the instance, unfortunately.
@lenferer why do you need an instance? Instances of adapters are being instantiated internally in Faraday. You just need to register your adapter as a middleware (see).
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.