From 409d6e4aa8ca5f3d85ac2aaa65b7c1c709220271 Mon Sep 17 00:00:00 2001 From: Max Melentiev Date: Thu, 7 Jun 2018 14:38:51 +0600 Subject: [PATCH] Use not confusing naming in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3483295..aa1b7ce 100644 --- a/README.md +++ b/README.md @@ -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