lib/telegram/bot/config_methods.rb in telegram-bot-0.4.2 vs lib/telegram/bot/config_methods.rb in telegram-bot-0.5.0

- old
+ new

@@ -39,8 +39,15 @@ (telegram_config['bots'] || {}).symbolize_keys.tap do |config| default = telegram_config['bot'] config[:default] = default if default end end + + # Resets all cached bots and their configs. + def reset_bots + @bots = nil + @bot = nil + @bots_config = nil + end end end end