зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-07 11:25:52 +03:00
Compact requires
Этот коммит содержится в:
@@ -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
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user