Comparing version 1.0.0 to 1.0.1
@@ -289,4 +289,4 @@ 'use strict'; | ||
function _handlePostback(message) { | ||
if (message.postback) { | ||
let postback = message.postback.payload; | ||
if (message.postback || (message.message && message.message.quick_reply)) { | ||
let postback = (message.postback &&message.postback.payload) || message.message.quick_reply.payload; | ||
this.emit('postback', message.sender.id, message, postback); | ||
@@ -298,3 +298,3 @@ } | ||
var value; | ||
if (message.message && message.message.text) { | ||
if (message.message && message.message.text && !message.message.quick_reply) { | ||
value = {text: message.message.text}; | ||
@@ -301,0 +301,0 @@ } |
{ | ||
"name": "botly", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Simple Facebook Messenger Bot API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -270,2 +270,5 @@ <img src="https://raw.githubusercontent.com/Askrround/botly/master/botly_logo.png" width="250" height="250" /> | ||
#### version 1.0.1 | ||
- quick replies are considered as postback and not regular message | ||
#### version 1.0.0 | ||
@@ -272,0 +275,0 @@ - removed `createTemplate` function - was too verbose |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81329
280