Changelog:
BugFix: The WhatsApp connection was failing with a 405 "Connection Failure" error because the Baileys socket was created without specifying a WhatsApp protocol version. This caused version incompatibility with WhatsApp's servers.
- Added fetchLatestBaileysVersion to the imports from @whiskeysockets/baileys
- Before creating the socket, fetch the latest Baileys version
- Pass the version to the makeWASocket configuration