1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-08-30 16:16:18 +03:00
Files
telegram-bot/lib/telegram/bot.rb
2020-12-06 18:35:10 +03:00

37 строки
1.1 KiB
Ruby

require 'telegram/bot/config_methods'
module Telegram
extend Bot::ConfigMethods
module Bot
class Error < StandardError; 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_16
@deprecation ||= begin
require 'active_support/deprecation'
ActiveSupport::Deprecation.new('0.16', 'Telegram::Bot')
end
end
autoload :Async, 'telegram/bot/async'
autoload :Client, 'telegram/bot/client'
autoload :ClientStub, 'telegram/bot/client_stub'
autoload :DebugClient, 'telegram/bot/debug_client'
autoload :Middleware, 'telegram/bot/middleware'
autoload :RSpec, 'telegram/bot/rspec'
autoload :Tasks, 'telegram/bot/tasks'
autoload :UpdatesController, 'telegram/bot/updates_controller'
autoload :UpdatesPoller, 'telegram/bot/updates_poller'
end
end
require 'telegram/bot/railtie' if defined?(Rails)