Module: TelegramBot::Request::PrependMethods

Defined in:
lib/telegram_bot/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tokenObject

Returns the value of attribute token.



8
9
10
# File 'lib/telegram_bot/request.rb', line 8

def token
  @token
end

Instance Method Details

#initialize(*args, token:, &block) ⇒ Object



10
11
12
13
# File 'lib/telegram_bot/request.rb', line 10

def initialize(*args, token:, &block)
  @token = token
  super(*args, &block)
end