Last active
February 25, 2017 17:52
-
-
Save stripethree/f39319db5d4c2debd5945316b9c9b68d to your computer and use it in GitHub Desktop.
Event subscriber example for a user sending an image.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
messenger.on(‘message.image’, ({senderId, url, session}) => { | |
// cool bot stuff | |
… | |
// reply to the user! | |
messenger.send(userId, { text: ‘something a robot would say’ } ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used in this Chatbots Magazine article.