We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da31cd1 commit 0bd8749Copy full SHA for 0bd8749
lib/telegram/bot/client.rb
@@ -53,6 +53,7 @@ def error_for_response(response)
53
54
def initialize(token = nil, username = nil, **options)
55
@client = HTTPClient.new
56
+ @client.set_proxy_auth(ENV['HTTP_PROXY_USER'],ENV['HTTP_PROXY_PASSWORD']) if ENV['HTTP_PROXY']
57
@token = token || options[:token]
58
@username = username || options[:username]
59
@base_uri = format(URL_TEMPLATE, token: self.token)
0 commit comments