Welcome to the YouTube Video Downloader Telegram Bot! This bot allows you to easily download any YouTube video using its URL directly from Telegram. Built using Python, this project utilizes the python-telegram-bot library to interact with Telegram and the pytube library to download videos from YouTube.
This README will guide you through setting up the bot, using it, and contributing to the project.
- Download Videos: Download YouTube videos in different qualities.
- URL Input: Simply send a YouTube video URL to the bot to get the download link.
- Multiple Quality Options: Get multiple quality options for the video based on what is available.
- User-Friendly: Easy-to-use interface with Telegram's chat system.
These instructions will help you get a copy of the bot up and running on your local machine for development and testing purposes.
- Python 3.x
python-telegram-botlibrarypytubelibrary- A Telegram Bot Token (you can create one by chatting with the BotFather).
First, you need to install the necessary Python libraries. Open a terminal and run the following command:
pip install python-telegram-bot pytube- Create a new bot on Telegram by chatting with BotFather.
- After creating the bot, you will get a Bot Token. Copy this token as it will be needed to authenticate the bot.
-
Clone this repository to your local machine or download the project files.
git clone https://github.com/Dhanush0000/youtube-video-downloader-bot.git
-
Open the
bot.pyfile and replace the following line with your own Telegram Bot Token:TOKEN = 'YOUR_BOT_TOKEN'
Once you’ve set up the bot, you can start it by running the following command in the terminal:
python bot.pyThe bot will start listening for incoming messages on Telegram.
- Open Telegram and search for your bot by its username.
- Start a conversation with the bot.
- Send the YouTube video URL you want to download.
- The bot will respond with a message containing the available video download options.
- Select the quality and download the video.
This project is open source and available under the MIT License.
Feel free to contribute to this project by submitting bug fixes, enhancements, or new features. To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Implement your changes.
- Test the changes locally.
- Submit a pull request.
Thank you for using the YouTube Video Downloader Telegram Bot! Happy downloading! 🎥📲