1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-03 17:55:52 +03:00
Этот коммит содержится в:
Max Melentiev
2016-03-05 21:40:09 +06:00
родитель e767a65faa
Коммит e03e39bd53
4 изменённых файлов: 252 добавлений и 1 удалений

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

@@ -10,6 +10,7 @@ module Telegram
require 'telegram/bot/updates_controller/session'
require 'telegram/bot/updates_controller/log_subscriber'
require 'telegram/bot/updates_controller/instrumentation'
autoload :MessageContext, 'telegram/bot/updates_controller/message_context'
include AbstractController::Callbacks
# Redefine callbacks with default terminator.
@@ -59,7 +60,7 @@ module Telegram
match = text.match CMD_REGEX
return unless match
return if match[3] && username != true && match[3] != username
[match[1], text.split(' ').drop(1)]
[match[1], text.split.drop(1)]
end
end