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.
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.