From 807746ecc975f87d0470335db6c4721284489254 Mon Sep 17 00:00:00 2001 From: Idan Harel Date: Tue, 13 Dec 2016 11:01:41 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a12e5c..be88b6d 100644 --- a/README.md +++ b/README.md @@ -149,14 +149,14 @@ Subscribe to events: * MESSAGE_SENT (Callback: `function (message, userProfile) {}`) * SUBSCRIBED (Callback: `function (response) {}`) * UNSUBSCRIBED (Callback: `function (response) {}`) -* CONVERSATION_STARTED (Callback: `function (response) {}`) +* CONVERSATION_STARTED (Callback: `function (userProfile, onFinish) {}`) * ERROR (Callback: `function (err) {}`) **Example** ```js bot.on(BotEvents.MESSAGE_RECEIVED, (message, response) => ... ); bot.on(BotEvents.MESSAGE_SENT, (message, userProfile) => ... ); -bot.on(BotEvents.CONVERSATION_STARTED, (message, response) => ... ); +bot.on(BotEvents.CONVERSATION_STARTED, (userProfile, onFinish) => ... ); bot.on(BotEvents.ERROR, err => ... ); bot.on(BotEvents.UNSUBSCRIBED, response => ... ); bot.on(BotEvents.SUBSCRIBED, response =>