MedusaXD UserBot is a Powerful, Pluggable Telegram UserBot written in Python using Pyrogram. Unleash the power of automation! ๐โก
- ๐ Pluggable Architecture: Easy to add/remove plugins
- โก Fast & Efficient: Built with Pyrogram for optimal performance
- ๐ก๏ธ Secure: Owner verification and sudo user system
- ๐ Database Support: MongoDB integration for data persistence
- ๐ฏ Rich Commands: 100+ commands across multiple categories
- ๐ณ Docker Ready: Containerized for easy deployment
- โ๏ธ Cloud Deploy: Ready for Render.com, Heroku, and other platforms
- ๐ Comprehensive Logging: Channel logging and console output
- ๐ Auto Restart: Automatic restart on crashes
- ๐จ Customizable: Highly configurable with environment variables
- User management (ban, kick, mute, promote)
- Chat administration
- Anti-spam protection
- Welcome/goodbye messages
- Memes and jokes
- Games and quizzes
- Text animations
- Sticker management
- File management and downloads
- System information
- URL shortening
- QR code generation
- Weather information
- Language translation
- Currency conversion
- News and updates
- Fork this repository
- Create a new Web Service on Render.com
- Connect your forked repository
- Set environment variables (see Configuration)
- Deploy!
# Clone the repository
git clone https://github.com/yourusername/MedusaXD-UserBot.git
cd MedusaXD-UserBot
# Copy and edit environment file
cp config.env.sample config.env
# Edit config.env with your values
# Build and run with Docker Compose
docker-compose up -d# Telegram API Credentials (get from https://my.telegram.org)
API_ID=your_api_id
API_HASH=your_api_hash
# Session String (generate using session_generator.py)
SESSION_STRING=your_session_string
# Database URL (MongoDB)
DATABASE_URL=mongodb://username:password@host:port/database
# Owner Configuration
OWNER_ID=your_telegram_user_id
LOG_CHANNEL_ID=your_log_channel_id
# Command Triggers
CMD_TRIGGER=.
SUDO_TRIGGER=!
# Workers
WORKERS=8# Heroku (if deploying to Heroku)
HEROKU_API_KEY=your_heroku_api_key
HEROKU_APP_NAME=your_app_name
# Progress Bars
FINISHED_PROGRESS_STR=โ
UNFINISHED_PROGRESS_STR=โ
# Download Path
DOWN_PATH=downloads/
# Single Instance
ASSERT_SINGLE_INSTANCE=true- Python 3.8 or higher
- MongoDB database
- Telegram API credentials
- Session string
-
Clone the repository
git clone https://github.com/yourusername/MedusaXD-UserBot.git cd MedusaXD-UserBot -
Install dependencies
pip install -r requirements.txt
-
Generate session string
python session_generator.py
-
Configure environment
cp config.env.sample config.env # Edit config.env with your values -
Run the userbot
python -m userge
.help- Show help menu.ping- Check bot latency.alive- Check if bot is running.restart- Restart the bot.shutdown- Shutdown the bot
.load <plugin>- Load a plugin.unload <plugin>- Unload a plugin.reload <plugin>- Reload a plugin.plugins- List all plugins
.ban <user>- Ban a user.unban <user>- Unban a user.kick <user>- Kick a user.mute <user>- Mute a user.unmute <user>- Unmute a user
For a complete list of commands, use .help in your Telegram chat.
MedusaXD-UserBot/
โโโ userge/ # Core framework
โ โโโ core/ # Core components
โ โโโ plugins/ # Built-in plugins
โ โโโ utils/ # Utility functions
โ โโโ __init__.py # Main client
โ โโโ config.py # Configuration
โ โโโ main.py # Main logic
โโโ plugins/ # External plugins
โ โโโ admin/ # Admin tools
โ โโโ fun/ # Fun commands
โ โโโ misc/ # Miscellaneous
โ โโโ tools/ # Utility tools
โ โโโ utils/ # Utility plugins
โโโ Dockerfile # Docker configuration
โโโ docker-compose.yml # Docker Compose
โโโ requirements.txt # Python dependencies
โโโ README.md # This file
from userge import userge, Message, filters
# Command handler
@userge.on_cmd("hello", about="Say hello")
async def hello_cmd(message: Message):
await message.edit("Hello, World!")
# Filter handler
@userge.on_filters(filters.text & filters.private)
async def private_handler(message: Message):
await message.reply("This is a private message!")- Telegram Channel: @MedusaXD_Updates
- Telegram Group: @MedusaXD_Support
- Issues: GitHub Issues
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
This userbot is for educational purposes only. Use it responsibly and in accordance with Telegram's Terms of Service. The developers are not responsible for any misuse of this software.
- Pyrogram - MTProto API framework
- UsergeTeam - Original Userge project inspiration
- All contributors and supporters
Made with โค๏ธ by the MedusaXD Team ๐โก