Sha256: dc5e27ada93c82797f91133ee53e361d6876bc8419b3245f1eaa6b2e252d418e

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 KB

Contents

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)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
telegram-bot-0.16.1 lib/telegram/bot.rb
telegram-bot-0.16.0 lib/telegram/bot.rb
telegram-bot-0.15.7 lib/telegram/bot.rb
telegram-bot-0.15.6 lib/telegram/bot.rb
telegram-bot-0.15.4 lib/telegram/bot.rb
telegram-bot-0.15.3 lib/telegram/bot.rb
telegram-bot-0.15.2 lib/telegram/bot.rb
telegram-bot-0.15.1 lib/telegram/bot.rb
telegram-bot-0.15.0 lib/telegram/bot.rb