dn1207/LocketGold_bot
๐ Locket Gold Activator Bot (Professional Edition)
<div align="center">
    ![Status]()
The most advanced, high-performance Telegram Bot for automating Locket Gold activation. Built with speed, security, and scalability in mind.
Why Choose This Bot? โข Features โข Installation โข Configuration
</div>
๐ Why Choose Locket Gold Activator Bot?
Unlike other basic scripts or tools, this bot is engineered as a production-grade system. It solves the common problems of slowness, API bans, and revocations.
๐ Key Features
โก High-Performance Core
- Fully Asynchronous: Powered by
aiohttpandasynciofor non-blocking I/O. The bot remains responsive to commands even under heavy load. - Worker Pool System: Configurable number of concurrent workers (
NUM_WORKERS) to parallelize request processing.
๐ก๏ธ Advanced Security
- NextDNS Integration: Automatically creates a unique DNS profile for each user that blocks
revenuecat.com, ensuring the Gold subscription sticks. - Strict Cooldowns: Enforces a 45-second cooldown per token usage to mimic human behavior and avoid detection.
๐ค Smart Automation
- Auto-Resolution: Just paste a Locket username or link; the bot handles UID resolution automatically.
- Queue Management: FIFO (First-In-First-Out) queue system with live status updates to prevent API flooding.
- Admin Dashboard: Powerful
/statscommand to monitor queue size, active workers, and success rates in real-time.
๐ ๏ธ Installation
Prerequisites
- Python 3.9+
- Telegram Bot Token via @BotFather
- NextDNS API Key via NextDNS Developer
Automated Setup
We provide a one-click setup script that handles virtual environments and dependencies.
# 1. Clone the repository
git clone https://github.com/thanhdo1110/Locket-Gold.git
cd Locket-Gold
# 2. Run the setup script
chmod +x run.sh
./run.shโ๏ธ Configuration
The system is configured via app/config.py. You must provide your API keys and Receipt Tokens here.
# app/config.py
# 1. System Credantials
BOT_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN_HERE"
NEXTDNS_KEY = "YOUR_NEXTDNS_API_KEY_HERE"
ADMIN_ID = 123456789 # Replace with your Telegram User ID
# 2. Worker Settings
# Match this number to the number of Token Sets you have to ensure 1-to-1 mapping.
NUM_WORKERS = 2
# 3. Receipt Tokens (Dumped from Jailbroken/Rooted/Nonjb Devices)
TOKEN_SETS = [
{
"fetch_token": "ey...", # RevenueCat Fetch Token
"app_transaction": "ey...", # Apple Receipt Transaction
"is_sandbox": False # Must be False for Production
},
# Add more token sets as needed...
]๐ฎ Commands
User Commands
Use these commands in your Telegram bot:
Admin Commands (๐)
Restricted to the ADMIN_ID configured in config.py.
๐ System Architecture
graph TD
User([๐ค User]) -->|Sends Username| Bot
subgraph "๐ค Bot Core (AsyncIO)"
Bot[Telegram Handler] -->|Enqueue| Queue[FIFO Queue]
Queue -->|1. Pop Request| Worker[๐ฑ Worker Thread]
end
subgraph "โ๏ธ External APIs"
Worker -->|2. Inject Token| RC[RevenueCat API]
Worker -->|3. Create Profile| NextDNS[NextDNS API]
end
RC -- 200 OK --> Worker
NextDNS -- Profile Link --> Worker
Worker -->|4. Success Message| Bot
Bot -->|5. Notify User| Userโ ๏ธ Disclaimer
This project is for EDUCATIONAL and RESEARCH purposes only. The author is not responsible for any misuse of this software. By using this tool, you agree to take full responsibility for your actions. "Locket Widget" and "RevenueCat" are trademarks of their respective owners.
<div align="center">
[ Report Bug ](https://github.com/thanhdo1110/Locket-Gold/issues) โข [ Request Feature ](https://github.com/thanhdo1110/Locket-Gold/issues)
Made with โค๏ธ by Thanh Do
</div>
