Socket
Socket
Sign inDemoInstall

whatsapp-nodejs

Package Overview
Dependencies
28
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatsapp-nodejs

This is a library based on whatsapp androd latest version, you can use it build your own app.


Version published
Maintainers
1
Weekly downloads
1
decreased by-50%

Weekly downloads

Readme

Source

商业合作或定制化需求可以联系:yisbug@gmail.com

关于

这是一个基于 WhatsApp Android 客户端的 WhatsApp 通信协议 SDK,意味着您可以基于这套 SDK 打造任意 WhatsApp 客户端,或者完成一些特定的需求.

官方最新版本:https://www.whatsapp.com/android/

目前 SDK 所支持的最新版本:2.22.21.71

TODO:

  • 完成登陆 2022.10.15
  • 完成注册 2022.10.31
  • 完成收发消息 2022.11.15

此 SDK 基于 nodejs 开发,同时提供了标准的 socket 接口供其他语言调用。理论上正常的语言都可以调用使用本 SDK。

环境要求:

  • nodejs: 16.17.1 LTS 版本
  • mongodb: -
  • redis: -

使用

安装

npm install whatsapp-nodejs

使用示例

const { Whatsapp } = require('whatsapp-nodejs');

const main = async()=>{
  const whatsapp = new Whatsapp({
    mongodb: 'mongodb://localhost:27017/whatsapp',
  });
  await whatsapp.init({
    mobile: '',
    cc:'',
    mnc:'',
    mcc:'',
    proxy:{
      host: '127.0.0.1',
      port: 1080
    }
  });

  await whatsapp.login();
};

main();


更多示例请参考 test/whatsapp.test.js

Keywords

FAQs

Last updated on 14 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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