This Telegram bot allows users to download audio from YouTube videos directly through the Telegram messaging platform. Share your favorite music with friends or build upon the code to enhance the bot's functionalities.
- Uses PyTube library to download audio from YouTube videos
- User-friendly interface on Telegram
- Easy sharing of music with friends
-
Clone the repository: https://github.com/SimonDerejeW/Telegram-YouTube-Audio-Downloader-Bot
-
Install the dependencies: Use pip install -r requirements.txt and install the dependency needed in order to run this script. This bot also uses the pythom-telegram-bot library to interact with the Telegram Bot API using Python.
-
Get your API token: Creating a bot requires you to have an API token unique to each bot. Start a chat with BotFather (https://t.me/BotFather) on Telegram to get started on creating a new bot and getting your own API token. Once you get your token, copy and paste it on the TOKEN variable in the code. You should also paste your telegram's bot username on the BOT_USERNAME variable.