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.3.11 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.10 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.9 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.8 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.7 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.6 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.5 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.4 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.3 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.2 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.1 lib/telegram/bot/botan.rb
telegram-bot-ruby-0.3.0 lib/telegram/bot/botan.rb