lib/telegram/bot.rb in telegram-bot-0.8.0 vs lib/telegram/bot.rb in telegram-bot-0.9.0.alpha1

- old
+ new

@@ -11,10 +11,11 @@ # While Telegram has same error codes for different messages and there is no # official docs for this error codes it uses `description` to # check response. class StaleChat < Error DESCRIPTIONS = [ + 'Bot was blocked', 'bot was kicked', "can't write to", 'group chat is deactivated', ].freeze @@ -24,12 +25,15 @@ DESCRIPTIONS.any? { |x| description[x] } end end end + autoload :Async, 'telegram/bot/async' autoload :Botan, 'telegram/bot/botan' autoload :Client, 'telegram/bot/client' autoload :ClientStub, 'telegram/bot/client_stub' + autoload :DebugClient, 'telegram/bot/debug_client' + autoload :Initializers, 'telegram/bot/initializers' autoload :Middleware, 'telegram/bot/middleware' autoload :UpdatesController, 'telegram/bot/updates_controller' autoload :UpdatesPoller, 'telegram/bot/updates_poller' end end