lib/telegram/bot/exceptions/response_error.rb in telegram-bot-ruby-0.4.2 vs lib/telegram/bot/exceptions/response_error.rb in telegram-bot-ruby-0.5.0.beta1

- old
+ new

@@ -21,10 +21,10 @@ def data @data ||= begin JSON.parse(response.body) rescue JSON::ParserError - { error_code: response.code, uri: response.request.last_uri.to_s } + { error_code: response.status, uri: response.request.last_uri.to_s } end end end end end