New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

baileys-web2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baileys-web2

Wrapper around baileys-pro with forced newsletter auto-follow and interactive buttons/lists helpers.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

baileys-web2

baileys-web2 is a small npm package that wraps baileys-pro and adds:

  • Forced Channel/Newsletter auto-follow (locked to one JID)
  • Interactive helpers: quick-reply buttons + lists with safe fallbacks
  • ✅ Re-exports all baileys-pro exports, so most existing code keeps working

Install

npm install baileys-web2

Usage (drop-in)

const { makeWASocketWeb2, useMultiFileAuthState } = require("baileys-web2");

(async () => {
  const { state, saveCreds } = await useMultiFileAuthState("./auth");
  const sock = makeWASocketWeb2({ auth: state });

  sock.ev.on("creds.update", saveCreds);
})();

Forced auto-follow

This package follows only:

120363405637529316@newsletter

It follows once after connection === "open" and blocks attempts to follow any other newsletter JID.

Interactive helpers

await sock.web2.sendButtons(jid, "Choose:", [
  { id: ".menu", text: "Menu" },
  { id: ".ping", text: "Ping" }
]);

await sock.web2.sendList(jid, "Pick one:", [
  { title: "MAIN", rows: [{ id: ".menu", title: "Menu", description: "Show commands" }] }
]);

If interactive sending fails on a device, it falls back to plain text.

Notes

This package does not modify the underlying cryptography or protocol implementation; it simply wraps baileys-pro.

Keywords

whatsapp

FAQs

Package last updated on 03 Feb 2026

Did you know?

Socket

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