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();