atipugin / telegram-bot-ruby

Ruby wrapper for Telegram's Bot API
https://core.telegram.org/bots/api
Do What The F*ck You Want To Public License
1.35k stars 217 forks source link

Faraday connection options for http_proxy #277

Closed mfoschian closed 1 year ago

mfoschian commented 1 year ago

Sometime the bot code is running behind an http proxy and the direct connection to telegram api is not possible. I extend the client and api interfaces to permit passing the the connection options to the Faraday instance. In my case I pass in the use_ssl flag with the proxy_address and the proxy_port parameters.

Hope this may help someone else.

github-actions[bot] commented 1 year ago

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.