lib/telegram/bot/client.rb in telegram-bot-ruby-2.0.0 vs lib/telegram/bot/client.rb in telegram-bot-ruby-2.1.0

- old
+ new

@@ -33,10 +33,10 @@ def fetch_updates api.getUpdates(options).each do |update| yield handle_update(update) end rescue Faraday::TimeoutError, Faraday::ConnectionFailed - retry + retry if @running end def handle_update(update) @options[:offset] = update.update_id.next message = update.current_message