Module: Telegram::Bot::Botan

Defined in:
lib/telegram/bot/botan.rb,
lib/telegram/bot/botan/api.rb

Defined Under Namespace

Classes: Api

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#botanObject (readonly)

Returns the value of attribute botan.



6
7
8
# File 'lib/telegram/bot/botan.rb', line 6

def botan
  @botan
end

Instance Method Details

#enable_botan!(token) ⇒ Object



8
9
10
# File 'lib/telegram/bot/botan.rb', line 8

def enable_botan!(token)
  @botan ||= Botan::Api.new(token)
end

#track(*args) ⇒ Object



12
13
14
# File 'lib/telegram/bot/botan.rb', line 12

def track(*args)
  botan.track(*args) if defined?(botan)
end