A powerful Telegram bot that allows you to search and download music from YTMusic.
The YTMusic Telegram Downloader Bot is a handy tool that integrates with the YTMusic service to let you search for and download your favorite tracks directly through Telegram.
To get started, you'll need to install the following dependencies:
- tgram: Framework to build the Telegram bot.
- ytmusicapi: Used to search in YTMusic and retrieve search results.
- yt-dlp: Utilized to download the music files.
- kvsqlite: An easy and simple SQLite key-value library for simple projects.
- uvloop: Ultra-fast asyncio event loop (only for Linux).
- python-dotenv: Reads key-value pairs from a .env file.
- You may need to use the youtube-oauth2 plugin for yt-dlp to avoid the anti-bots protector.
Follow these steps to set up and run the bot:
- Clone the repository:
git clone https://github.com/z44d/ytmusic-bot
- Change to the project directory:
cd ytmusic-bot
- Install the required dependencies:
pip install -r requirements.txt
- Edit the environment variables file (.env) to configure your settings.
- Run the bot:
python main.py
- This project is licensed under the MIT License - see the LICENSE file for details.