1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-07 19:35:52 +03:00
Этот коммит содержится в:
Max Melentiev
2018-01-05 12:51:49 +03:00
родитель 384d203b59
Коммит 70a1ed8a8f

Просмотреть файл

@@ -53,12 +53,18 @@ module Telegram
class UpdatesController < AbstractController::Base # rubocop:disable ClassLength class UpdatesController < AbstractController::Base # rubocop:disable ClassLength
abstract! abstract!
require 'telegram/bot/updates_controller/session' %w[
require 'telegram/bot/updates_controller/log_subscriber' instrumentation
require 'telegram/bot/updates_controller/instrumentation' log_subscriber
require 'telegram/bot/updates_controller/reply_helpers' reply_helpers
autoload :CallbackQueryContext, 'telegram/bot/updates_controller/callback_query_context' session
autoload :MessageContext, 'telegram/bot/updates_controller/message_context' ].each { |file| require "telegram/bot/updates_controller/#{file}" }
%w[
CallbackQueryContext
MessageContext
TypedUpdate
].each { |mod| autoload mod, "telegram/bot/updates_controller/#{mod.underscore}" }
include AbstractController::Callbacks include AbstractController::Callbacks
# Redefine callbacks with default terminator. # Redefine callbacks with default terminator.
@@ -76,8 +82,6 @@ module Telegram
prepend Instrumentation prepend Instrumentation
extend Session::ConfigMethods extend Session::ConfigMethods
autoload :TypedUpdate, 'telegram/bot/updates_controller/typed_update'
PAYLOAD_TYPES = %w[ PAYLOAD_TYPES = %w[
message message
edited_message edited_message