Socket
Socket
Sign inDemoInstall

node-whatsapp-bot-api

Package Overview
Dependencies
92
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.2 to 1.4.3

2

dist/types/index.d.ts

@@ -309,3 +309,3 @@ // Generated by dts-bundle-generator v8.0.1

from: string;
timestamp: string;
timestamp: number;
type: AllMessageType;

@@ -312,0 +312,0 @@ messaging_product: AllMessagingProductType;

@@ -16,6 +16,8 @@ "use strict";

if (isReplyMessage) {
self.logger.info("Message is a reply to another message.", {
self.logger.info(`Message is a reply to another message: ${JSON.stringify({
messageId: message.context.message_id,
from: message.context.from,
});
})}`);
// TODO: EMIT 'REPLIED_TO' EVENT.
return;
}

@@ -26,7 +28,5 @@ switch (message.type) {

const { timestamp, from, id, text } = message;
self.logger.info("Received text message:", {
body: text.body,
});
self.logger.info(`Received text message: ${text.body}`);
const textMessage = {
timestamp,
timestamp: +timestamp,
text,

@@ -33,0 +33,0 @@ from,

{
"name": "node-whatsapp-bot-api",
"version": "1.4.2",
"version": "1.4.3",
"description": "WhatsApp Bot that can be used as middleware to emit events to listeners. Listeners can react to incoming messages. Additionally, the WhatsApp bot can send messages if a WhatsApp Cloud API token is provided.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -6,5 +6,2 @@ [![Checks](https://github.com/MartinMohammed/node-whatsapp-bot-api/actions/workflows/checks.yaml/badge.svg)](https://github.com/MartinMohammed/node-whatsapp-bot-api/actions/workflows/checks.yaml) ![npm type definitions](https://img.shields.io/npm/types/node-whatsapp-bot-api) [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)

[![Checks](https://github.com/MartinMohammed/node-whatsapp-bot-api/actions/workflows/checks.yaml/badge.svg)](https://github.com/MartinMohammed/node-whatsapp-bot-api/actions/workflows/checks.yaml)
![npm type definitions](https://img.shields.io/npm/types/whatsapp-bot)
The WhatsappBot is a JavaScript class that represents a WhatsApp bot. It provides functions for sending text messages using the WhatsApp API and extends the EventEmitter class to handle event-based communication.

@@ -11,0 +8,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc