Skip to content

Commit

Permalink
added recipient to the echo event
Browse files Browse the repository at this point in the history
  • Loading branch information
miki2826 committed Jan 31, 2017
1 parent 0ab721f commit 6deee8e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Askrround
Copyright (c) 2016 miki2826

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="https://raw.githubusercontent.com/Askrround/botly/master/botly_logo.png" width="250" height="250" />
<img src="https://raw.githubusercontent.com/miki2826/botly/master/botly_logo.png" width="250" height="250" />
---------
[![Built with Grunt](https://cdn.gruntjs.com/builtwith.svg)](http://gruntjs.com/)
[![Build Status](https://travis-ci.org/Askrround/botly.svg)](https://travis-ci.org/Askrround/botly)
Expand Down Expand Up @@ -337,7 +337,7 @@ botly.on("sent", (to, message) => {
/* track it */
});

botly.on("echo", (sender, message, content) => {
botly.on("echo", (sender, message, content, recipient) => {
/* track it */
});

Expand All @@ -357,7 +357,7 @@ botly.on("referral", (sender, message, ref) => {

### version 1.3.0
- support version 1.3 of messenger including the new list template
- support for referral params on m.me links
- support for referral params on m.me links

### version 1.2.0
- added support for webview height in web url button
Expand Down
2 changes: 1 addition & 1 deletion lib/Botly.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ function _handleUserMessage(message) {

function _handleEcho(message) {
if (message.message && message.message.is_echo) {
this.emit('echo', message.sender.id, message, message.message);
this.emit('echo', message.sender.id, message, message.message, message.recipient.id);
}
}

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "botly",
"version": "1.3.4",
"version": "1.3.5",
"description": "Simple Facebook Messenger Bot API",
"main": "index.js",
"scripts": {
"test": "grunt default --verbose"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Askrround/botly.git"
"url": "git+https://github.com/miki2826/botly.git"
},
"keywords": [
"fb",
Expand All @@ -30,9 +30,9 @@
},
"license": "MIT",
"bugs": {
"url": "https://github.com/Askrround/botly/issues"
"url": "https://github.com/miki2826/botly/issues"
},
"homepage": "https://github.com/Askrround/botly#readme",
"homepage": "https://github.com/miki2826/botly#readme",
"dependencies": {
"body-parser": "^1.15.1",
"express": "^4.13.4",
Expand Down

0 comments on commit 6deee8e

Please sign in to comment.