lib/telegram/bot/api.rb in telegram-bot-ruby-0.3.1 vs lib/telegram/bot/api.rb in telegram-bot-ruby-0.3.2
- old
+ new
@@ -29,10 +29,10 @@
def call(endpoint, raw_params = {})
params = build_params(raw_params)
response = self.class.post("/bot#{token}/#{endpoint}", query: params)
if response.code == 200
- response.to_h
+ response.to_hash
else
fail Exceptions::ResponseError.new(response),
'Telegram API has returned the error.'
end
end