itsliaaa/baileys — reverse-engineered prompt
Reverse engineered prompt
Build me a clean JavaScript WhatsApp automation package based on Baileys v7 that’s easy to read, safe to audit, and ready for real use. I want it to connect to WhatsApp with saved auth, keep a simple in memory chat store, and make sending messages straightforward.
It should support normal text, mentions, reactions, contacts, location, polls, media, documents, audio, stickers, albums with photos and videos, and newsletter or channel media uploads. Please also include the newer message styles like buttons, lists, templates, carousels, rich responses, code block messages, inline entities, tables, sticker packs, status mentions, view once, ephemeral messages, external ad previews, and quoting messages inside channels.
Please keep it ESM friendly for Node 20 or newer, don’t add any hidden auto follow behavior, and make the code readable instead of obfuscated. Add a simple example that connects, logs incoming messages, and sends a few sample message types. Look up current Baileys docs if needed.
Want more depth? Deep Reverse