lib/telegram/bot/exceptions/response_error.rb in telegram-bot-ruby-2.0.0 vs lib/telegram/bot/exceptions/response_error.rb in telegram-bot-ruby-2.1.0
- old
+ new
@@ -7,10 +7,10 @@
attr_reader :response
def initialize(response:)
@response = response
- super "Telegram API has returned the error. (#{data.map { |k, v| %(#{k}: #{v.inspect}) }.join(', ')})"
+ super("Telegram API has returned the error. (#{data.map { |k, v| %(#{k}: #{v.inspect}) }.join(', ')})")
end
def error_code
data[:error_code] || data['error_code']
end