зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-06 11:05:51 +03:00
Use not confusing naming in readme
Этот коммит содержится в:
@@ -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
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user