lib/telegram/bot.rb in telegram-bot-ruby-0.4.2 vs lib/telegram/bot.rb in telegram-bot-ruby-0.5.0.beta1
- old
+ new
@@ -1,10 +1,28 @@
-require 'httmultiparty'
-require 'persistent_httparty'
require 'virtus'
+require 'logger'
+require 'json'
+require 'faraday'
require 'telegram/bot/types'
require 'telegram/bot/exceptions'
require 'telegram/bot/api'
require 'telegram/bot/null_logger'
require 'telegram/bot/client'
require 'telegram/bot/version'
+require 'telegram/bot/configuration'
+
+module Telegram
+ module Bot
+ class << self
+ attr_writer :configuration
+ end
+
+ def self.configuration
+ @configuration ||= Configuration.new
+ end
+
+ def self.configure
+ yield(configuration)
+ end
+ end
+end