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

Use not confusing naming in readme

Этот коммит содержится в:
Max Melentiev
2018-06-07 14:38:51 +06:00
родитель b5f4c97f44
Коммит 409d6e4aa8

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

@@ -283,12 +283,12 @@ class Telegram::WebhookController < Telegram::Bot::UpdatesController
def rename!(*) def rename!(*)
# set context for the next message # set context for the next message
save_context :rename save_context :rename_from_message
respond_with :message, text: 'What name do you like?' respond_with :message, text: 'What name do you like?'
end end
# register context handlers to handle this context # register context handlers to handle this context
def rename(*words) def rename_from_message(*words)
update_name words[0] update_name words[0]
respond_with :message, text: 'Renamed!' respond_with :message, text: 'Renamed!'
end end