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

Added FB sticker detection #320

merged 2 commits into from
Aug 13, 2016

Conversation

MironV
Copy link
Contributor

@MironV MironV commented Jul 12, 2016

FB stickers can be distinguished from regular images sent by the user by looking at the message data for a sticker_id field. Right now, botkit doesn't support plumbing that through so it's impossible to distinguish a Like from someone sending an image. This fixes that issue.

@@ -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!

@benbrown
Copy link
Contributor

Cool!

Should this maybe also throw a special event, like sticker_received?

@benbrown benbrown merged commit b1d7e0f into howdyai:master Aug 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants