diff --git a/README.md b/README.md index 56021d5..92e0619 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,8 @@ smartBot.get('Hi', function(update) { const question = 'How should I greet you?', answers = [['Hi'], ['Hello, Sir'], ['Yo bro']]; - smartBot.replyTo(message.message_id).askQuestion(id, question, answers) + smartBot.replyTo(message.message_id) + .askQuestion(id, question, answers) .then(answer => { smartBot.message(id, 'Your answer: ' + answer); }, () => { diff --git a/demo.js b/demo.js index 363b75a..613a79f 100644 --- a/demo.js +++ b/demo.js @@ -18,7 +18,8 @@ smartBot.get('Hi', function(update) { const question = 'How should I greet you?', answers = [['Hi'], ['Hello, Sir'], ['Yo bro']]; - smartBot.replyTo(message.message_id).askQuestion(id, question, answers) + smartBot.replyTo(message.message_id) + .askQuestion(id, question, answers) .then(answer => { smartBot.message(id, 'Your answer: ' + answer); }, () => {