Skip to content

Commit

Permalink
use object argument to sendText; fixes issue miki2826#9
Browse files Browse the repository at this point in the history
  • Loading branch information
matmar10 committed Sep 3, 2016
1 parent 418c026 commit b4261ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b4261ef

Please sign in to comment.