lib/telegram/bot/config_methods.rb in telegram-bot-0.13.0 vs lib/telegram/bot/config_methods.rb in telegram-bot-0.13.1

- old
+ new

@@ -1,7 +1,6 @@ require 'active_support/core_ext/hash/keys' -require 'active_support/core_ext/hash/transform_values' require 'active_support/core_ext/hash/indifferent_access' module Telegram module Bot module ConfigMethods @@ -41,10 +40,10 @@ end end # Hash of botan clients made from #bots. def botans - @botans ||= bots.transform_values(&:botan) + @botans ||= bots.map { |k, v| [k, v.botan] }.to_h end # Returns config for .bots method. By default uses `telegram['bots']` section # from `secrets.yml` merging `telegram['bot']` at `:default` key. #