Skip to content

greatautomate/MedusaXDUB

Repository files navigation

MedusaXD UserBot ๐Ÿโšก

Python Version License Deploy Telegram

MedusaXD UserBot is a Powerful, Pluggable Telegram UserBot written in Python using Pyrogram. Unleash the power of automation! ๐Ÿโšก

Features โœจ

  • ๐Ÿ”Œ 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

Plugin Categories ๐Ÿ“‚

Admin Tools ๐Ÿ‘ฎโ€โ™‚๏ธ

  • User management (ban, kick, mute, promote)
  • Chat administration
  • Anti-spam protection
  • Welcome/goodbye messages

Fun & Entertainment ๐ŸŽฎ

  • Memes and jokes
  • Games and quizzes
  • Text animations
  • Sticker management

Utility Tools ๐Ÿ› ๏ธ

  • File management and downloads
  • System information
  • URL shortening
  • QR code generation

Miscellaneous ๐ŸŒŸ

  • Weather information
  • Language translation
  • Currency conversion
  • News and updates

Quick Deploy ๐Ÿš€

Deploy to Render.com (Recommended)

  1. Fork this repository
  2. Create a new Web Service on Render.com
  3. Connect your forked repository
  4. Set environment variables (see Configuration)
  5. Deploy!

Deploy to Render

Deploy with Docker

# 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

Configuration โš™๏ธ

Required Environment Variables

# 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

Optional Environment Variables

# 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

Installation ๐Ÿ“ฆ

Prerequisites

  • Python 3.8 or higher
  • MongoDB database
  • Telegram API credentials
  • Session string

Local Installation

  1. Clone the repository

    git clone https://github.com/yourusername/MedusaXD-UserBot.git
    cd MedusaXD-UserBot
  2. Install dependencies

    pip install -r requirements.txt
  3. Generate session string

    python session_generator.py
  4. Configure environment

    cp config.env.sample config.env
    # Edit config.env with your values
  5. Run the userbot

    python -m userge

Commands ๐Ÿ“‹

Basic Commands

  • .help - Show help menu
  • .ping - Check bot latency
  • .alive - Check if bot is running
  • .restart - Restart the bot
  • .shutdown - Shutdown the bot

Plugin Management

  • .load <plugin> - Load a plugin
  • .unload <plugin> - Unload a plugin
  • .reload <plugin> - Reload a plugin
  • .plugins - List all plugins

Admin Commands

  • .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.

Development ๐Ÿ‘จโ€๐Ÿ’ป

Project Structure

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

Creating Plugins

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!")

Support ๐Ÿ’ฌ

Contributing ๐Ÿค

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License ๐Ÿ“„

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Disclaimer โš ๏ธ

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.

Credits ๐Ÿ™

  • Pyrogram - MTProto API framework
  • UsergeTeam - Original Userge project inspiration
  • All contributors and supporters

Made with โค๏ธ by the MedusaXD Team ๐Ÿโšก

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages