Skip to content

Commit

Permalink
Merge pull request miki2826#10 from matmar10/issues/9
Browse files Browse the repository at this point in the history
use object argument to sendText; fixes issue miki2826#9
  • Loading branch information
miki2826 authored Sep 4, 2016
2 parents 418c026 + b4261ef commit e82adfe
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 e82adfe

Please sign in to comment.