lib/telegram/bot/exceptions/response_error.rb in telegram-bot-ruby-0.5.0.beta3 vs lib/telegram/bot/exceptions/response_error.rb in telegram-bot-ruby-0.5.0.beta4
- old
+ new
@@ -21,10 +21,10 @@
def data
@data ||= begin
JSON.parse(response.body)
rescue JSON::ParserError
- { error_code: response.status, uri: response.request.last_uri.to_s }
+ { error_code: response.status, uri: response.env.url.to_s }
end
end
end
end
end