зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
* Update rubopcop [WIP] * Further rubocop fixes * Fix rubocop-rails cops * Fix spec * Disable rubocop suggestions * Run rubocop in github actions rather than in codeclimate
31 строка
1013 B
Ruby
31 строка
1013 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|
|
|
|
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'
|
|
autoload :VERSION, 'telegram/bot/version'
|
|
end
|
|
end
|
|
|
|
require 'telegram/bot/railtie' if defined?(Rails)
|