in services/receive.js [151:163]
handlePostback() {
let postback = this.webhookEvent.postback;
// Check for the special Get Starded with referral
let payload;
if (postback.payload) {
// Get the payload of the postback
payload = postback.payload;
} else if (postback.referral && postback.referral.type == "OPEN_THREAD") {
payload = postback.referral.ref;
}
return this.handlePayload(payload.toUpperCase());
}