lib/telegram/bot/client/api_helper.rb
# Defines method with underscored name to post to specific endpoint:
#
#   define_method :getMe
#   # defines #get_me
Defines method with underscored name to post to specific endpoint:
define_method :getMe
defines #get_me
Defines method with underscored name to post to specific endpoint : define_method : getMe defines #get_me
def define_helpers(*list)
            list.map(&:to_s).each do |method|
              define_method(method.underscore) { |*args| request(method, *args) }
            end
          end
def define_helpers ( * list ) list . map ( & :to_s ) . each do | method | define_method ( method . underscore ) { | * args | request ( method , * args ) } end end
Defines method with underscored name to post to specific endpoint:
define_method :getMe
 defines #get_me
Defines method with underscored name to post to specific endpoint : define_method : getMe defines #get_me
list