Migration Guide

AunuBaileys is built on the official @whiskeysockets/baileys 6.7.24 base β€” migrating is deliberately boring.

From @whiskeysockets/baileys

// 1. Swap the dependency
npm uninstall @whiskeysockets/baileys
npm i aunubaileys

// 2. Change the import specifier β€” nothing else
import makeWASocket, { useMultiFileAuthState } from 'aunubaileys'

Session compatibility: the auth state format is upstream's β€” point useMultiFileAuthState at your existing auth folder and the bot reconnects without re-pairing. (Back the folder up first; you should be doing that anyway.)

What you gain on day one

CapabilityUpstream 6.7.24AunuBaileys
makeInMemoryStoreRemovedβœ… Restored, typed, loadMessage/toJSON/fromJSON β€” Store
processedMessages, initInMemoryKeyStore(), PHONENUMBER_MCCRemovedβœ… Restored β€” old scripts run unmodified
Sticker packs / albums via sendMessageβ€”βœ… 1.0.2 β€” Messages
Newsletter media uploadsBroken pathsβœ… Fixed 1.0.2
Atomic session writesβ€”βœ… 1.0.2
Interactive builders (Button, Carousel, AIRich…)β€”βœ… 1.0.4 β€” Builders
Anti-ban layerβ€”βœ… 1.0.5 β€” AunuAntiBan
Socket extras (aunuHandler, reachout timelock, chat cap…)β€”βœ… 1.0.3 β€” API Reference

From community forks (itsliaaa, neoxr, MichelleBot, and friends)

From Baileys 6.6.x / older

Your code likely already uses makeInMemoryStore β€” which is exactly why this package exists. Swap the dependency as above; the store API you remember (bind, loadMessage, toJSON/fromJSON) is the API that's here. Everything else follows the 6.7.x upstream surface.

Migration checklist