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

node-whatsapp-bot-api

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-whatsapp-bot-api - npm Package Compare versions

Comparing version 1.4.5 to 1.4.6

dist/customTypes/messagingFeatures/textMessageMetaResponse.js

7

dist/index.js

@@ -120,2 +120,3 @@ "use strict";

* @param to The recipient of the message.
* @returns wam_id The whatsapp message id of the sent message.
*/

@@ -143,4 +144,8 @@ sendTextMessage(textMessage, to) {

try {
yield (0, makePostRequest_1.default)(this, axiosConfig);
const response = yield (0, makePostRequest_1.default)(this, axiosConfig);
const data = response.data;
this.logger.verbose(`Successfully sent message to: ${to}.`);
// Should return back the wam_id from the sent whatsapp message.
// Because status code of 200 was returned before in the checks we can assume that response will be correct.
return data.messages[0]["id"];
}

@@ -147,0 +152,0 @@ catch (error) {

3

dist/types/index.d.ts

@@ -509,4 +509,5 @@ // Generated by dts-bundle-generator v8.0.1

* @param to The recipient of the message.
* @returns wam_id The whatsapp message id of the sent message.
*/
sendTextMessage(textMessage: string, to: string): Promise<void>;
sendTextMessage(textMessage: string, to: string): Promise<string | undefined>;
}

@@ -513,0 +514,0 @@

{
"name": "node-whatsapp-bot-api",
"version": "1.4.5",
"version": "1.4.6",
"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",

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