Download videos using this telegram bot

VideoMasters, updated 🕥 2023-03-05 10:10:23

VideoDownloaderBot

Download videos from various websites using this telegram bot

Docker (Easiest)

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

Manually

  • Make sure docker is installed and running sh 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 sh heroku login git clone https://github.com/DaruaraFriends/VideoDownloaderBot cd VideoDownloaderBot heroku create heroku stack:set container git push heroku main
  • Help: https://devcenter.heroku.com/articles/build-docker-images-heroku-yml

  • Add all environment vars either from cli or heroku settings sh heroku config:set ENV1=abc ENV2=123

Python

  • Make sure python3, ffmpeg, aria2 are installed sh 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

sh 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

Issues

Update app.json

opened on 2023-03-05 10:01:53 by kd2929 None
VideoMasters
GitHub Repository

telegram telegram-bot bot hacktoberfest hacktoberfest2021