Skip to content

Praanjal157/teradownloadbot

 
 

Repository files navigation

This is a Telegram Bot written in Python for Downloading Videos From Terabox.

Terabox API/Base Code HERE.

Heroku Video Guide Here.

Fill this Values in config.env

  • BOT_TOKEN: The Telegram Bot Token that you got from @BotFather. Str
  • TELEGRAM_API: This is to authenticate your Telegram account for downloading Telegram files. You can get this from https://my.telegram.org. Int
  • TELEGRAM_HASH: This is to authenticate your Telegram account for downloading Telegram files. You can get this from https://my.telegram.org. Str
  • FSUB_ID: The Force Subscribe Channel, users will not be able to use your bot without joining the Channel. (Enter the Channel/Group ID starting with -100). Int
  • DUMP_CHAT_ID: The Dump Channel, all leeched videos will be Forwared Here. (Enter the Channel/Group ID starting with -100). Int

Telegram : @ultroidxTeam


Demo bot

🤖 Terabox downloader bot 🟢      - @DRM2_bot

😵‍💫 Feature :

  • Public usage & Pvt usage
  • Save all videos into Database Channel
  • Broadcast
  • Total user count
  • Admin can download 500MB+
  • Force sub | Channel & Group
  • Token verification Feature
  • check token timeout
  • 🆕 check STATUS how many users are verified via token ( current status )
  • 🆕 Working on Groups & in PM

Command:

/start - alive or not !
/check - token timeout (user)
/broadcast - media/txt support (a)
/Stats - verified user status (a)

Deploy using CLI

  • Deployment instructions uploaded HERE
  • Carefully copy-paste every CMD one by one. If you miss maybe your BOT will not run.

Deploy on VPS


Prerequisites

1. Installing requirements

  • Clone this repo:
git clone https://github.com/sahildesai07/Tera-down-bot/ && cd Tera-down-bot
  • For Debian based distros
sudo apt install python3 python3-pip

Install Docker by following the Official docker docs. Or you can use the convenience script: curl -fsSL https://get.docker.com | bash

  • For Arch and it's derivatives:
sudo pacman -S docker python

2. Build And Run the Docker Image

Make sure you still mount the app folder and installed the docker from official documentation.

  • There are two methods to build and run the docker:
    1. Using official docker commands.
    2. Using docker-compose.

Build And Run The Docker Image Using Official Docker Commands

  • Start Docker daemon (SKIP if already running, mostly you don't need to do this):
sudo dockerd
  • Build Docker image:
sudo docker build . -t phdlust
  • Run the image:
sudo docker run -p 80:80 -p 8080:8080 phdlust
  • To stop the running image:
sudo docker ps
sudo docker stop id

Build And Run The Docker Image Using docker-compose

NOTE: If you want to use ports other than 80 and 8080 change it in docker-compose.yml.

  • Install docker compose
sudo apt install docker-compose
  • Build and run Docker image:
sudo docker-compose up --build
  • To stop the running image:
sudo docker-compose stop
  • To run the image:
sudo docker-compose start
  • To get latest log from already running image (after mounting the folder):
sudo docker-compose up

If anyone want requirements.txt to run without Docker, access it Here.

Cmd to start the Bot: bash start.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.1%
  • Dockerfile 1.4%
  • Other 0.5%