Sha256: 9ef156304fa62b6b8ac5150e6e0fe141434f9cddf7c5e531d899361df712b7db

Contents?: true

Size: 387 Bytes

Versions: 32

Compression:

Stored size: 387 Bytes

Contents

require 'telegram/bot/botan/api'

module Telegram
  module Bot
    module Botan
      attr_reader :botan

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

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

if defined?(Telegram::Bot::Client)
  Telegram::Bot::Client.send(:include, Telegram::Bot::Botan)
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
telegram-bot-ruby-0.8.3 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.8.2 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.8.1 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.8.0 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.7.2 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.7.1 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.7.0 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.6.0.2 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.6.0.1 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.5.3 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.5.2 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.5.1 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.5.0 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.5.0.beta4 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.5.0.beta3 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.5.0.beta2 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.5.0.beta1 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.4.2 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.4.1 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.4.0 lib/telegram/bot/botan.rb