From 38790c5ce20d1e5ab499b2d56c5bd9718974273b Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sat, 27 Jun 2015 03:06:59 +0430 Subject: [PATCH] Update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b62c84f..d91a120 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ npm install telegram-api # Example ```javascript -var Bot = require('./index'); +var Bot = require('telegram-api'); var smartBot = new Bot({ token: 'YOUR_KEY' @@ -24,7 +24,7 @@ smartBot.get('Hi', function(update) { const question = 'How should I greet you?', answers = ['Hi', 'Hello, Sir', 'Yo bro']; - smartBot.askQuestion(id, question, answers) + smartBot.replyTo(message.message_id).askQuestion(id, question, answers) .then(answer => { smartBot.message(id, 'Your answer: ' + answer); }, () => {