baileys-web2
v1.0.0
Published
Wrapper around baileys-pro with forced newsletter auto-follow and interactive buttons/lists helpers.
Maintainers
Readme
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-proexports, so most existing code keeps working
Install
npm install baileys-web2Usage (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.
