1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-06 02:55:50 +03:00

Simplified .wrap method, added for Botan

Этот коммит содержится в:
Max Melentiev
2016-05-18 21:09:45 +03:00
родитель 91e0aa2096
Коммит 27602b20bd
11 изменённых файлов: 169 добавлений и 92 удалений

Просмотреть файл

@@ -34,6 +34,11 @@ module Telegram
@bot ||= bots[:default]
end
# Hash of botan clients made from #bots.
def botans
@botans ||= bots.transform_values(&:botan)
end
# Returns config for .bots method. By default uses `telegram['bots']` section
# from `secrets.yml` merging `telegram['bot']` at `:default` key.
#
@@ -52,6 +57,7 @@ module Telegram
@bots = nil
@bot = nil
@bots_config = nil
@botans = nil
end
end
end