Skip to content

Telegram YouTube Downloader Bot (Educational Purposes Only)

Notifications You must be signed in to change notification settings

DevHanza/TelegramYTDLBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Downloader Bot

A Telegram Bot to Download YouTube Videos upto 4K under 2GB.

(Only for Educational Purposes)

Features

  • ✅ Fast Downloads
  • ✅ Choose video quality before download.
  • ✅ Downloading Queue for users.
  • ✅ Max video upload size : 2GB
  • ✅ Save server side resources.
  • ✅ No Developer side limits.

How to Deploy

1. Setup Environment Variables

  • Get your BOT_API_KEY from here.
  • Create .env file
  • Paste this code into your file and replace with your own values.
BOT_API_KEY = "9999999999:AAHePL8-xSzjOlnF5dRGiwhNyxxZsS3u7f4" # Replace with your own token
  • Save it!

2. Install Dependencies

git clone https://github.com/hansanaD/TelegramYTDLBot.git;
cd TelegramYTDLBot;
pip install -r requirements.txt;

3. Run api server locally (optional)

You can choose not to use this service.
But then you won't be able to upload files up to 2000 MB and get these features.

  • Generate your instructions from here. (This step might take upto 20 mins.)
  • Go to:
  • cd telegram-bot-api/bin
    
  • Get API ID & HASH from here. (Watch this Tutorial to get help.)
  • Start the server. (Remember to replace the values with your own values):
  • ./telegram-bot-api --api-id=XXXXX --api-hash=XXXXXXXXXXXX --http-port=8081 --local
    

Read the instructions on eternnoir/pyTelegramBotAPI and tdlib/telegram-bot-api for more information.

4. Run your bot

  • open a new "screen" or tab on your terminal.
  • run: python bot.py

both script & api server should run at the same time order to work.

Disclaimer

This repository is intended for educational and personal use only. The use of this repository for any commercial or illegal purposes is strictly prohibited. The repository owner does not endorse or encourage the downloading or sharing of copyrighted material without permission. The repository owner is not responsible for any misuse of the software or any legal consequences that may arise from such misuse

Sorry for my bad english and my messy documentation. 😶