lib/telegram/bot/initializers.rb
def wrap(input, **options)
        case input
        when Symbol then by_id(input) or raise "#{name} #{input.inspect} not configured"
        when self   then input
        when Hash   then new(**input.symbolize_keys, **options)
        else        new(input, **options)
        end
      end
# Accepts different options to initialize bot.
Accepts different options to initialize bot.
Accepts different options to initialize bot .
def wrap(input, **options)
        case input
        when Symbol then by_id(input) or raise "#{name} #{input.inspect} not configured"
        when self   then input
        when Hash   then new(**input.symbolize_keys, **options)
        else        new(input, **options)
        end
      end
def wrap ( input , ** options ) case input when Symbol then by_id ( input ) or raise "#{name} #{input.inspect} not configured" when self then input when Hash then new ( ** input . symbolize_keys , ** options ) else new ( input , ** options ) end end
Accepts different options to initialize bot.
Accepts different options to initialize bot .
input
options