1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-04 02:05:52 +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!(*)
# set context for the next message
save_context :rename
save_context :rename_from_message
respond_with :message, text: 'What name do you like?'
end
# register context handlers to handle this context
def rename(*words)
def rename_from_message(*words)
update_name words[0]
respond_with :message, text: 'Renamed!'
end