Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Added FB sticker detection #320

Merged
merged 2 commits into from
Aug 13, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/Facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ function Facebookbot(configuration) {
facebook_message.message.attachment = message.attachment;
}

if (message.sticker_id) {
facebook_message.message.sticker_id = message.sticker_id;
}

if (message.quick_replies) {
facebook_message.message.quick_replies = message.quick_replies;
}
Expand Down Expand Up @@ -136,6 +140,7 @@ function Facebookbot(configuration) {
timestamp: facebook_message.timestamp,
seq: facebook_message.message.seq,
mid: facebook_message.message.mid,
sticker_id: facebook_message.message.sticker_id,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an indentation difference in here. Can you solve it, please? Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should fix it!

attachments: facebook_message.message.attachments,
quick_reply: facebook_message.message.quick_reply
};
Expand Down