bisnuray/BioLink-Protector
BioLink Protector, a Telegram bot Script, automatically monitors group chat user bios for links. It can warn, mute, or ban users with links in their bios, helping maintain a clean, safe chat environment.
BioLink Protector Telegram Bot
BioLink Protector is a Telegram bot Script that automatically monitors user bios in group chats for links. If a link is found in a user's bio, the bot can warn the user, mute them, or ban them based on configurable settings. This bot helps maintain a clean and safe environment in your Telegram group chats.
Features
- Automatically checks user bios for links when they send a message in the group.
- Configurable warnings, mutes, and bans for users with links in their bios.
- Whitelist & Unwhitelist trusted members
- Cancel Warning reset a user’s warnings
- Admin-only controls with interactive inline keyboards
🎮 Demo Bot
Try it live: @BioLinkProBot
Requirements
Before you begin, ensure you have met the following requirements:
- Python 3.8 or higher
Installation
git clone https://github.com/bisnuray/BioLink-Protector
cd BioLink-Protector
pip install -r requirements.txt
Configuration
- Open the
config.pyfile in your favorite text editor. - Replace the placeholders for
API_ID,API_HASH,BOT_TOKEN, andMONGO_URIwith your actual values:API_ID: Your API ID from my.telegram.org.API_HASH: Your API Hash from my.telegram.org.BOT_TOKEN: The token you obtained from @BotFather.MONGO_URI: Your MongoDB connection string (e.g., from MongoDB Atlas).
Deploy the Bot
python bio.pyUsage
- Add the bot to your group.
- Grant the bot Admin rights (delete & restrict).
- In-chat commands (admins only):
/config→ choose “Warn”, “Mute”, or “Ban” and set warn count/free [reply|id]→ whitelist a user/unfree [reply|id]→ remove from whitelist/freelist→ view all whitelisted users
- Auto-scan: When a non-whitelisted user posts, their bio is checked—warn/mute/ban applies.
✨ Note: Fork this repo, & Star ☀️ the repo if you liked it. and Share this repo with Proper Credit
Author
- Name: Bisnu Ray
- Telegram: @itsSmartDev
Feel free to reach out if you have any questions or feedback.