lib/telegram/bot/config_methods.rb
def bots
        @bots ||= bots_config.each_with_object({}) do |(id, config), h|
          h[id] = Client.wrap(config, id: id)
        end
      end
# Hash of bots made with bots_config.
Hash of bots made with bots_config.
Hash of bots made with bots_config .
def bots
        @bots ||= bots_config.each_with_object({}) do |(id, config), h|
          h[id] = Client.wrap(config, id: id)
        end
      end
def bots @bots ||= bots_config . each_with_object ( { } ) do | ( id , config ) , h | h [ id ] = Client . wrap ( config , id : id ) end end
Hash of bots made with bots_config.
Hash of bots made with bots_config .