A high-performance, modular Telegram Bot designed to securely download, compress, and upload massive video files directly on Heroku or VPS.
Built with advanced FFmpeg integration, kurigram MTProto architecture, and a bulletproof Dockerized environment.
100% DMCA Safe.
- 🚀 Dynamic 4GB Limit Bypass: Natively detects Premium vs. Non-Premium User Sessions to seamlessly handle 2.0GB or 4.0GB uploads.
- 🛡️ Mime-Type Armor: Instantly rejects disguised ZIP/PDF documents to protect your server's bandwidth.
- 🎛️ Interactive UI Menu (
/bsetting): ChangeCRF,CODEC, Watermarks, and Document Uploads instantly with a visual toggle board. - ✂️ Smart Auto-Splitter: Safely segments files that exceed Telegram's size limits without losing video quality.
- 🖥️ Live Hardware Telemetry: Monitor your Server's CPU, RAM & Network I/O directly in your Telegram chat (
/status). - 🏷️ Custom Watermarking: Burn your own custom text natively into your compressed videos.
- 📊 Advanced System Telemetry: Instantly fetch OS, Python, FFmpeg, Git versions & full
pip freezepackage list via Telegra.ph integration (/versionor/v). - 📦 Always Up-To-Date: The Dockerfile automatically pulls the absolute latest stable versions of Python, FFmpeg, Git, MediaInfo and everything else to guarantee maximum performance, speed, and security.
Update The Server & Install Everything:
sudo apt-get update && sudo apt-get upgrade -yOnly Select If There Is An Upgrade Left Inside Putty:
sudo apt-get dist-upgrade -ysudo apt-get install docker.io docker-compose git -yRemove Any Existing Repository:
sudo rm -rf subhasishcom(If you are redeploying or need to clean up an old version of the project before cloning it again, run this command to forcefully remove the old folder)
Switch to Root User (Superuser):
sudo su(Note: To gain full administrative privileges and avoid having to type sudo before every single command during your setup, switch to the root user!)
Clone & Select This Private Repo:
git clone https://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@github.com/isubhasish/subhasishcom/cd subhasishcomBuild & Run The Bot:
sudo docker compose pull && sudo docker compose up -d --buildNote: Do Not Use This Command If You Have Upgraded Your Docker Environment To Compose V2.
sudo docker-compose pull && sudo docker-compose up -d --buildIncluded Beautiful Custom Boot Sequence.
sudo docker logs -f encoderGo to your Putty terminal inside your aiencoder folder and run the clean rebuild command sequence.
cd subhasishcomsudo docker-compose down --rmi all
git pull
Run Again The Advanced Build Command Like Before After Github Is Updated Our Folder/Files:
sudo docker compose pull && sudo docker compose up -d --build
Set Up The Repository:
apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
Add Docker’s Official GPG Key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Set Up The Stable Repository:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Install Docker:
apt-get install -y docker.io
Check The Docker:
docker ps
Clone & Select This Private Repo:
git clone https://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@github.com/isubhasish/subhasishcom/
cd subhasishcom
Build And Run Docker & App:
apt install docker-compose
docker-compose pull
docker-compose up --build
sudo docker ps
sudo docker stop id
sudo docker-compose down
sudo docker container prune
sudo docker image prune -a
sudo docker-compose down --rmi all
sudo docker builder prune -a -f
sudo docker system prune -a -f
If this bot is the ONLY thing running on your VPS, you don't even need to look up the container ID. Run this from anywhere to auto-detect the bot, stop it, and wipe all unused data/volumes instantly.
sudo docker stop $(sudo docker ps -aq) && sudo docker system prune -a --volumes -f1️⃣ Download The Official Docker Installation Script:
curl -fsSL https://get.docker.com -o get-docker.sh2️⃣ Run The Script To Upgrade Docker:
sudo sh get-docker.sh3️⃣ Clean Up The Script:
rm get-docker.sh4️⃣ Wake Docker Back Up:
sudo systemctl start docker && sudo systemctl enable docker5️⃣ Run Your Build Using Modern Build Commands:
sudo docker compose pull && sudo docker compose up -d --build6️⃣ Verify Docker & Docker Compose Versions:
sudo docker version && sudo docker compose version7️⃣ Verify Your Docker Images:
sudo docker images(This will list all the Docker images currently stored on your system along with their tags and IDs.)
Copy and paste this block directly into BotFather:
start - Start The Bot 🤖
ping - Check Bot's Up Time & Last Updated Status. ⏰
version - Check System, Python, FFmpeg & Packages. 📊
status - Check the active compression, queue, and server Hardware
clear - Clear Your Queued Tasks 🔫
help - For Getting Help 🤔
settings - ⚠️ Check Current Ffmpeg Code Settings [Owner/Sudo Only]
preset - ⚠️ Change Preset Settings [Owner/Sudo Only]
crf - ⚠️ Change CRF Value [Owner/Sudo Only]
audio - ⚠️ Change Audio Settings [Owner/Sudo Only]
resolution - ⚠️ Change Video Resolution [Owner/Sudo Only]
codec - ⚠️ Your Codec Settings [Owner/Sudo Only]
mediainfo - ⚠️ Get MediaInfo of a video [Owner/Sudo]
samplegen - ⚠️ Generate a random 30sec preview sample [Owner/Sudo]
setthumbnail - Reply to an image to save your custom thumbnail
delthumbnail - Safely delete your custom thumbnail
bsetting - ⚠️ Change Bot Config values live [Owner]
exec - ⚠️ Execution [Owner Only]
eval - ⚠️ Evaluation [Owner Only]
cancel - ⚠️ Cancel all tasks [Owner/Sudo Only]
cancelall - ⚠️ Cancel all active and queued tasks [Owner]
speedtest - ⚠️ Test the Server's Download/Upload speed [Owner/Sudo]
broadcast - ⚠️ Send a message to all authorized users [Owner]
log - ⚠️ Get the Bot Log [Owner/Sudo Only]
restart - ⚠️ Restart the Bot [Owner/Sudo Only]