Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

botly

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botly - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

lib/Botly.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc