From 8cd59a6a8eaf2b021fe38680c9ca15d9c6bfed99 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sat, 27 Jun 2015 04:48:09 +0430 Subject: [PATCH] Update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff00ad2..6bd17ab 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,9 @@ smartBot.get('Hi', function(update) { const message = update.message; const id = message.chat.id; + // answers is in format of keyboard rows const question = 'How should I greet you?', - answers = ['Hi', 'Hello, Sir', 'Yo bro']; + answers = [['Hi'], ['Hello, Sir'], ['Yo bro']]; smartBot.replyTo(message.message_id).askQuestion(id, question, answers) .then(answer => { @@ -49,7 +50,6 @@ smartBot.command('test', update => { smartBot.command('start', update => { smartBot.message(update.message.chat.id, 'Hello!'); }); - // You can access all API methods through the api property until we implement // easier methods smartBot.api.getUserProfilePhotos