Skip to content

pgla99/VideoDownloaderBot

 
 

Repository files navigation

VideoDownloaderBot

Download videos from various websites using this telegram bot

Docker (Easiest)

  • Make sure docker is installed and running
    # Create ~/vdb.env file with appropriate values.
    docker run -d --restart=always --env-file ~/vdb.env deshdeepak1/video_downloader_bot:latest

Manually

  • Make sure docker is installed and running
    git clone https://github.com/DaruaraFriends/VideoDownloaderBot
    cd VideoDownloaderBot
    docker build -t vdb .
    cp sample.env .env
    # Change values in .env
    docker run -d --restart=always --env-file .env vdb

Colab

Open In Colab

Heroku

Easy Way

Deploy

Docker

  • Make sure heroku-cli is installed npm i -g heroku
    heroku login
    git clone https://github.com/DaruaraFriends/VideoDownloaderBot
    cd VideoDownloaderBot
    heroku create
    heroku stack:set container
    git push heroku main

Python

  • Make sure python3, ffmpeg, aria2 are installed
    git clone https://github.com/DaruaraFriends/VideoDownloaderBot
    cd VideoDownloaderBot
    cp sample.env .env
    # Change values in .env
    python3 -m venv venv
    . ./venv/bin/activate
    pip install -r ./requirements.txt
    python3 bot.py

.env

    API_ID=12345 # Get from https://my.telegram.org/apps
    API_HASH=abcdef # Get from https://my.telegram.org/apps
    BOT_TOKEN=123:abc # Get from https://t.me/BotFather
    AUTH_USERS=123,456 # User ids of those who can use bot anywhere without limit
    GROUPS=123,456 # Chat ids where you wan't many to use the bot
    JSON_GROUPS=123,456 # Chat ids where you wan't many to use the bot to download from jsons
    THUMB=thumb.jpg # Url of video thumbnail. Leave to use video's thumbnail
    NAME=Deshdeepak # Name to send with video

Instructions

  • /download_link - To download from links
  • /download_json - To download from jsons
  • /download_link@bot_username & /download_json@bot_username - To use in groups

About

Download videos using this telegram bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 80.7%
  • Jupyter Notebook 17.7%
  • Other 1.6%