This is a Telegram bot that allows users to download music from Spotify and YouTube. It supports downloading tracks, albums, playlists, and artist information. DISCLAIMER : THIS SCRIPTS ARE FOR EDUCATION PURPOSES ONLY AND ARE NOT INTENDED TO PROMOTE ANY ILLEGAL ACTIVITIES. THE AUTHOR WILL NOT BE HELD RESPONSIBLE FOR ANY MISUSE OF THE INFORMATION PROVIDED
- Download tracks, albums, playlists, and artist information from Spotify.
- Search for music by song name, album name, or artist name.
- Retrieve top tracks and albums of an artist.
- Download music from YouTube.
- Clone the repository:
git clone https://github.com/nimiology/spotify_downloader_telegram__bot.git
cd spotify_downloader_telegram__bot
- Install dependencies:
pip install -r requirements.txt
-
Set up your .env file with sample.env:
BOT_TOKEN
: Telegram bot tokenSPOTIFY_CLIENT_ID
: Spotify client IDSPOTIFY_CLIENT_SECRET
: Spotify client secretTELEGRAM_API_ID
: Telegram api IDTELEGRAM_API_HASH
: Telegram api hashGENIUS_ACCESS_TOKEN
: Genius API access tokenBOT_ID
: Telegram bot usernameDB_CHANNEL_ID
: Telegram channel ID
-
Run the bot:
python main.py
- Start the bot by sending
/start
command. - Send a Spotify or song name to download music.
- Search for music by sending song, album, or artist names.
Contributions are welcome! If you want to contribute to this project, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.