1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-06 11:05:51 +03:00

MessageContext doesnt use #process to run actions

Этот коммит содержится в:
Max Melentiev
2016-05-12 00:28:22 +03:00
родитель 9b3fb562a3
Коммит 1f139a2b36
4 изменённых файлов: 46 добавлений и 35 удалений

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

@@ -200,8 +200,8 @@ class Telegram::WebhookController < Telegram::Bot::UpdatesController
end
# register context handlers to handle this context
context_handler :rename do |message|
update_name message[:text]
context_handler :rename do |*words|
update_name words[0]
reply_with :message, text: 'Renamed!'
end