From b4261ef79d021cfda38279676937d87646b1d209 Mon Sep 17 00:00:00 2001 From: "Matthew J. Martin" Date: Sat, 3 Sep 2016 23:51:58 +0800 Subject: [PATCH] use object argument to sendText; fixes issue #9 --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a8ed46..2581631 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,10 @@ const botly = new Botly({ botly.on("message", (senderId, message, data) => { let text = `echo: ${data.text}`; - botly.sendText(senderId, text); + botly.sendText({ + id: senderId, + text: text + }); }); const app = express();