lib/telegram/bot/client.rb in telegram-bot-ruby-0.5.0 vs lib/telegram/bot/client.rb in telegram-bot-ruby-0.5.1
- old
+ new
@@ -37,10 +37,10 @@
@offset = update.update_id.next
message = extract_message(update)
log_incoming_message(message)
yield message
end
- rescue Faraday::TimeoutError
+ rescue Faraday::Error::TimeoutError
retry
end
private