Skip to content

v1.1.0 - LID Support & Enhanced Security

Latest

Choose a tag to compare

@TheStoicSpirit TheStoicSpirit released this 16 Nov 05:58

πŸ”’ 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, checkid

No 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)

  1. Set REQUIRE_WHITELIST=false in .env
  2. Run Bot, checkid to get your WhatsApp ID
  3. Add users to whitelist: Bot, whitelist [number] [name]
  4. Change to REQUIRE_WHITELIST=true
  5. 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 functions
  • baseCommand.js - Fixed whitelist logic
  • commandManager.js - Security mode
  • whatsAppBot.js - LID detection
  • config.js - REQUIRE_WHITELIST setting

New Functions:

  • normalizePhoneNumber() - Extract phone from any ID
  • matchesPhoneNumber() - Universal ID comparison
  • isLID() - Detect LID format
  • getJIDType() - 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