lib/tasks/telegram-bot.rake in telegram-bot-0.12.0 vs lib/tasks/telegram-bot.rake in telegram-bot-0.12.1

- old
+ new

@@ -19,10 +19,10 @@ cert = File.open(cert_file) if cert_file Telegram.bots.each do |key, bot| route_name = Telegram::Bot::RoutesHelper.route_name_for_bot(bot) url = routes.send("#{route_name}_url") puts "Setting webhook for #{key}..." - bot.set_webhook(url: url, certificate: cert) + bot.async(false) { bot.set_webhook(url: url, certificate: cert) } end end end end