Download videos from various websites using this telegram bot
- 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
- 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
- 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
-
Help: https://devcenter.heroku.com/articles/build-docker-images-heroku-yml
-
Add all environment vars either from cli or heroku settings
heroku config:set ENV1=abc ENV2=123
- 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
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
- /download_link - To download from links
- /download_json - To download from jsons
- /download_link@bot_username & /download_json@bot_username - To use in groups