Skip to content

utkarshdubey2008/Alphashare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Ξ±lphΞ± FΓ­lΡ” ShΞ±rΡ” Ɓot

Version 2.1

A Revolutionary Telegram File Sharing Bot with Quality Upload Mode

Python Version GitHub Stars GitHub Forks
GitHub Issues Last Commit Updates Channel

🎯 What's New in V2.1

πŸš€ MAJOR FEATURE: QUALITY UPLOAD MODE

Quality Upload Feature

Automatically organize your media files by quality and generate grouped, shareable links

πŸ“Œ Quality Upload Mode Overview

A revolutionary feature that automatically organizes your media files by quality (480p, 720p, 1080p, HDrip, WEBrip, etc.) and generates grouped, shareable links.

πŸ”§ Commands

Command Description
/qu or /qupload Start quality upload mode
/qmode Toggle between filename/caption extraction
/qdone or /qud Generate quality-grouped links
/qcancel Cancel quality upload mode

πŸ“ How It Works

  1. Activate quality upload with /qu
  2. Send your media files (videos/documents)
  3. Auto-detect quality from filename or caption
  4. Generate organized links with /qdone

πŸ’‘ Example Output

480p - https://t.me/bot?start=xxx | 720p - https://t.me/bot?start=xxx | 1080p - https://t.me/bot?start=xxx
HDrip - https://t.me/bot?start=xxx
WEBrip - https://t.me/bot?start=xxx

🎨 Supported Quality Formats

  • Resolutions: 240p, 360p, 480p, 720p, 1080p, 1440p, 2160p, 4K
  • Rip Types: BluRay, WEB-DL, WEBrip, HDrip, HDTV, DVDrip, TS, CAM
  • Flexible Pattern: Handles HDrip, HD-rip, HD_rip, HD.rip, hdrip

🎯 Quality Extraction Modes

Extraction Modes

πŸ“‚ Filename Mode (Default)

  • Extracts quality from file name
  • Example: Movie.Name.2024.1080p.WEBrip.mkv β†’ 1080p & WEBrip

πŸ’¬ Caption Mode

  • Extracts quality from file caption/description
  • Useful when quality is mentioned in caption
  • Toggle via /qmode command

πŸ”€ Smart Fallback

  • If caption mode is active but no caption exists
  • Automatically falls back to filename extraction
  • Ensures quality is always detected

πŸš€ Batch Mode Enhancements

Batch Mode

πŸ“¦ Perfect Episode Sequencing

  • Files now send in exact sorted order
  • Episode numbers detected from multiple patterns
  • Supports: E01, Episode 01, Ep01, S01E01, [E01], -E01-

⚑ FloodWait Resume System

  • Bot remembers exact position during FloodWait
  • Resumes from where it stopped
  • Real-time progress tracking
  • No files skipped or duplicated

πŸ”§ Technical Improvements

βœ… Smart Link Formatting

  • All links now in monospace format for easy copying
  • Resolution qualities grouped on one line
  • Rip qualities listed separately for clarity

βœ… Retry Logic

  • 3 automatic retries on failed uploads
  • 2-second delay between retries
  • Graceful error handling

βœ… Command Aliases

  • /qdone β†’ /qud (quick done)
  • Both work identically for user convenience

βœ… Admin-Only Access

  • All batch and quality upload features restricted to admins
  • Unauthorized users receive clear denial messages

πŸ“‹ Complete Command Reference

🎬 Quality Upload Commands

/qu, /qupload    β†’ Start quality upload mode
/qmode           β†’ Toggle extraction mode (filename/caption)
/qdone, /qud     β†’ Generate quality links
/qcancel         β†’ Cancel quality upload

πŸ“¦ Batch Upload Commands

/batch           β†’ Start batch mode
/done            β†’ Generate batch link (episode sorted)
/cancel          β†’ Cancel batch mode

πŸ‘‘ Admin Commands

/addadmin <user_id>  β†’ Add a new admin (Owner only)
/rmadmin <user_id>   β†’ Remove admin privileges (Owner only)
/adminlist           β†’ View current admin list (Owner only)

πŸ› οΈ Utility Commands

/start           β†’ Start the bot
/help            β†’ Get help information
/stats           β†’ View bot statistics
/short <url>     β†’ Shorten a URL

✨ Core Features

🎯 Quality Upload Mode

  • Auto-organize by quality
  • Grouped shareable links
  • Smart quality detection
  • Multiple extraction modes

πŸ“¦ Advanced Batch Mode

  • Perfect episode sorting
  • FloodWait resume system
  • Real-time progress tracking
  • No duplicates or skips

πŸ” Security & Admin

  • Multi-admin system
  • MongoDB admin management
  • Admin-only uploads
  • File access control

πŸ“Š Analytics & Tracking

  • Real-time download stats
  • Storage analytics
  • User tracking
  • Performance metrics

🌟 Additional Features

  • βœ… Universal File Support β€” All Telegram-supported file types
  • βœ… UUID-based Links β€” Unique sharing with download tracking
  • βœ… Professional UI β€” Clean interface with progress bars
  • βœ… Auto-Delete β€” Configurable auto-deletion for copyright
  • βœ… URL Shortening β€” Built-in URL shortener
  • βœ… Privacy Mode β€” Prevent file forwarding/copying
  • βœ… 24/7 Uptime β€” Koyeb keep-alive mechanism
  • βœ… Force Subscribe β€” Multiple force sub channels support
  • βœ… Broadcast System β€” Message broadcasting with inline buttons

πŸ› οΈ Installation & Deployment

πŸš€ Quick Deploy

Deploy on Heroku Deploy on Koyeb

πŸ’» Manual Installation

# Clone the repository
git clone https://github.com/utkarshdubey2008/AlphaShare.git
cd AlphaShare

# Create virtual environment
python -m venv venv

# Activate virtual environment
source venv/bin/activate  # Linux/Mac
.\venv\Scripts\activate   # Windows

# Install dependencies
pip install -r requirements.txt

# Run the bot
python main.py

πŸ”„ How to Update to V2.1

Important

Sync Your Fork to get the latest V2.1 features!

  1. Go to your forked repository on GitHub
  2. Click on "Sync fork" button
  3. Click "Update branch" to sync with the latest changes
  4. Redeploy your bot to apply the updates

πŸŽ“ Usage Examples

Example 1: Quality Upload Mode

User: /qu
Bot: βœ… Quality Upload Mode activated!

User: [Sends Movie.2024.1080p.WEBrip.mkv]
Bot: βœ… Detected: 1080p, WEBrip

User: [Sends Movie.2024.720p.HDrip.mkv]
Bot: βœ… Detected: 720p, HDrip

User: /qdone
Bot: 
πŸ“Š Quality Upload Complete!

1080p - https://t.me/bot?start=xxx
720p - https://t.me/bot?start=xxx
WEBrip - https://t.me/bot?start=xxx
HDrip - https://t.me/bot?start=xxx

Example 2: Batch Mode with Episodes

User: /batch
Bot: βœ… Batch Mode activated!

User: [Sends Series.S01E03.mkv]
User: [Sends Series.S01E01.mkv]
User: [Sends Series.S01E02.mkv]

User: /done
Bot: 
πŸ“¦ Batch Upload Complete!
Files sorted: E01, E02, E03

Batch Link: https://t.me/bot?start=batch_xxx

πŸ“œ License

This project is licensed under the MIT LICENSE.


πŸ™ Credits & Acknowledgments

πŸ‘¨β€πŸ’» Developer

Utkarsh Dubey
Main Developer of Alpha Share Bot

πŸ› οΈ Technologies

  • Pyrogram β€” Telegram MTProto API Framework
  • MongoDB β€” Database for admin and file management
  • Koyeb β€” Seamless 24/7 hosting

🌟 Special Thanks

  • Contributors, testers, and community members
  • Alpha Bots Community for continuous support
  • All users who provided valuable feedback

πŸ’¬ Join Our Community

Telegram Channel

Stay updated with the latest features and announcements!


Made with ❀️ by Utkarsh Dubey

⭐ Star this repo if you find it useful!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7

Languages