π Birthday Bot v1.1.0 - LID Support & Enhanced Security
Major Update: WhatsApp LID format support + Strict security mode
β¨ What's New
WhatsApp LID Support
- β Auto-detection for both JID (old) and LID (new) WhatsApp formats
- β Phone matching across different conversation contexts
- β
New command:
checkid- Check your WhatsApp ID format - β First-time setup guidance for LID users
- β Works seamlessly with both old and new accounts
Enhanced Security (REQUIRE_WHITELIST)
- π Strict Mode - Only whitelisted users can use ANY command (default)
- π Setup Mode - Public access to help/checkid for initial setup
- π Silent ignore for unauthorized users (bot stays hidden)
- π Debug logging for security monitoring
What is LID?
WhatsApp's new privacy feature where your ID changes per conversation. Birthday Bot now fully supports this!
Old (JID): 919876543210@s.whatsapp.net (fixed)
New (LID): 1836486XXXX9443@lid (changes per chat)
π Critical Fixes
- β Fixed whitelist authentication - Was not blocking unauthorized users
- β Fixed owner recognition with LID format
- β Improved phone number matching across ID formats
- β Better console output (removed Baileys warnings)
π Upgrade from v1.0.0
git pull origin main
npm start
# Optional: Check your ID format
Bot, checkidNo breaking changes - seamless upgrade!
βοΈ New Configuration
Add to your .env file:
# Security mode (recommended: true)
REQUIRE_WHITELIST=true # Strict: Only whitelisted users
# REQUIRE_WHITELIST=false # Setup: Anyone uses help/checkid
# Optional: For LID users
# OWNER_LID=your_lid_here@lidπ§ First-Time Setup (New Users)
- Set
REQUIRE_WHITELIST=falsein.env - Run
Bot, checkidto get your WhatsApp ID - Add users to whitelist:
Bot, whitelist [number] [name] - Change to
REQUIRE_WHITELIST=true - Restart bot - Now secure! π
β οΈ Important for LID Users
If you use new WhatsApp (LID format):
- Your ID changes per conversation
- Always message YOUR OWN number to run commands
- Save your number as a contact first
- Bot recognizes you by phone number
Check your format: Bot, checkid
π New Command
Bot, checkid - Check your WhatsApp ID format
- Shows your phone number
- Shows your full WhatsApp ID
- Identifies JID or LID format
- Provides setup instructions
- Shows authorization status
π οΈ Technical Details
New Files:
checkIdCommand.js- ID verification utility
Updated Files:
validators.js- LID support functionsbaseCommand.js- Fixed whitelist logiccommandManager.js- Security modewhatsAppBot.js- LID detectionconfig.js- REQUIRE_WHITELIST setting
New Functions:
normalizePhoneNumber()- Extract phone from any IDmatchesPhoneNumber()- Universal ID comparisonisLID()- Detect LID formatgetJIDType()- Get readable ID type
π Stats
- Files Changed: 7
- Bug Fixes: 4 critical
- New Commands: 1 (
checkid) - Security: Significantly improved
- UX: Much cleaner output
π Documentation
- Updated README with LID information
- Security setup guide
- LID troubleshooting section
- Updated .env.example
π Thank You
Thanks to everyone who reported the whitelist bug and provided feedback! Your input made this release possible.
Full Changelog: v1.0.0...v1.1.0