TELEGRAM YOUTUBE DOWNLOADER BOT

 🤖 TELEGRAM YOUTUBE DOWNLOADER BOT 🤖


1️⃣ Download python if you haven't installed. Then download following repository : 

https://github.com/aryanvikash/Youtube-Downloader-Bot/archive/refs/heads/master.zip


or 


git clone https://github.com/aryanvikash/Youtube-Downloader-Bot


2️⃣ Obtain your APP ID and HASH ID. I won't explain that much, you just need a Telegram account for this. Check the official Telegram tutorial out : https://core.telegram.org/api/obtaining_api_id.


3️⃣ Install ffmpeg and the requirements :


sudo apt install ffmpeg -y


pip3 install -r requirements.txt


Or for Windows : https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip


4️⃣ Setup the bot:


Open config.py and paste your details. Make a new bot at bot father bot : @BotFather. 


In the config.py you can replace the os.environ.get function with just a string :


BOT_TOKEN = os.environ.get("BOT_TOKEN")

APP_ID = int(os.environ.get("API_ID"))

API_HASH = os.environ.get("API_HASH")


To :

BOT_TOKEN = "BOT_TOKEN"

APP_ID = int("API_ID")

API_HASH = "API_HASH"


Then you write python3 -m bot to run the bot.

Post a Comment

أحدث أقدم