Giter VIP home page Giter VIP logo

teras's Introduction

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

Terabox API/Base Code HERE.


Video Guides

  • Deploy on Heroku

  • Deploy on Koyeb

  • Deploy on Render


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

For farther assistance visit my support group: @JetMirror.


Deploy using CLI on Heroku

  • 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/Hrishi2861/Terabox-Downloader-Bot/ && cd Terabox-Downloader-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 terabox
  • Run the image:
sudo docker run -p 80:80 -p 8080:8080 terabox
  • 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

teras's People

Contributors

hrishi2861 avatar

Watchers

Jnanesh  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.