mallzofficial2/baileys ? reverse-engineered prompt
Reverse engineered prompt
Build me a WhatsApp automation bot using this Baileys library that can connect without a browser, pair reliably with a code, and keep the session saved so it stays logged in. I want it to be able to send normal messages, images, albums, polls, events, and interactive messages with buttons and copy actions, plus handle group admin tasks and chat management. Add a few helper commands too, like checking a channel ID and checking whether a number is banned or blocked on WhatsApp. Make the startup flow simple, with clear status messages for pairing, connecting, reconnecting, and errors. Keep it lightweight and easy to run, and include a few working example commands so I can see how to use the main features right away. If you need to, look up the current docs online to match the latest WhatsApp behavior.