Skip to content

Releases: TheStoicSpirit/Whatsapp-Wishing-Bot

v1.1.0 - LID Support & Enhanced Security

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

v1.0.0 - First Public Release

Choose a tag to compare

@TheStoicSpirit TheStoicSpirit released this 16 Nov 05:41

🎉 Birthday Bot v1.0.0 - First Public Release

Schedule midnight WhatsApp wishes and never miss a birthday again!

✨ What's Included

Core Features

  • Midnight Scheduling - Schedule messages for exact 12:00 AM
  • 📦 Archive System - Auto-archive sent wishes, reschedule for next year
  • 👥 Group Management - Organize contacts, schedule bulk messages
  • 🔐 Security - Whitelist-based access control
  • 💾 Data Management - JSON storage, backups, restore

Commands (25 total)

  • Wish management: addwish, listwishes, deletewish, archivewish
  • Archives: listarchives, reschedulewish, deletearchivedwish
  • Groups: creategroup, addtogroup, listgroups, and more
  • Admin: start, stop, status, whitelist, backup, restore
  • Utility: help

🚀 Installation

git clone https://github.com/TheStoicSpirit/Whatsapp-Wishing-Bot
cd Whatsapp-Wishing-Bot
npm install
cp .env.example .env
# Edit .env with your WhatsApp number
npm start

📋 Requirements

  • Node.js 16+
  • WhatsApp account
  • 24/7 hosting (local computer, VPS, or cloud)

🛠️ Tech Stack

  • @whiskeysockets/baileys 7.0.0-rc.6
  • node-cron
  • Node.js

📚 Documentation

  • Full installation guide in README
  • All commands documented
  • Hosting options explained
  • Contributing guidelines

📄 License

GNU Affero General Public License v3.0 (AGPL-3.0)

🙏 First Release

This is the initial public release after months of personal use and testing. Thank you for trying Birthday Bot!

Full Changelog: https://github.com/TheStoicSpirit/Whatsapp-Wishing-Bot/commits/v1.0.0