lib/telegram/bot.rb in telegram-bot-0.12.4 vs lib/telegram/bot.rb in telegram-bot-0.13.0
- old
+ new
@@ -3,11 +3,24 @@
module Telegram
extend Bot::ConfigMethods
module Bot
class Error < StandardError; end
- class NotFound < Error; end
+
+ # Raised for valid telegram response with 403 status code.
class Forbidden < Error; end
+
+ # Raised for valid telegram response with 404 status code.
+ class NotFound < Error; end
+
+ module_function
+
+ def deprecation_0_14
+ @deprecation ||= begin
+ require 'active_support/deprecation'
+ ActiveSupport::Deprecation.new('0.14', 'Telegram::Bot')
+ end
+ end
autoload :Async, 'telegram/bot/async'
autoload :Botan, 'telegram/bot/botan'
autoload :Client, 'telegram/bot/client'
autoload :ClientStub, 'telegram/bot/client_stub'