Skip to content

Masterolic/Spotify-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Logo

Spotify Downloader Bot

DEMO VERSION @Spotify_downloa_bot

Introduction

Yes, this repository is still maintained, and new features will be added over time.

Common Issues

Why are audio files not sending?

Make sure that FFMpeg is installed! Check the logs for more details. See the image below to add FFMpeg if you are using Heroku.

Add FFMpeg in Heroku Add Python in Heroku

Why do I get a 403 Forbidden error in my logs?

Your VPS/Local Server might be blocked by YouTube. Try changing the IP address or using a proxy by filling the FIXIE_SOCKS_HOST variable, changing the location, or using cookies. Add this line "cookiefile":"path" where path is defined as where your cookie file is. Refer here for more details.

Note

This is the old repository of @Spotify_downloa_bot, so it may be buggy and lack some features. However, it will still be maintained and updated with new features as they are developed.

Technical Details

Which language and Telegram API are used?

This bot is created using Python and the pyrogram library for Telegram.

Why is this open source?

I don't own this repo; this is an edited version of @NeedMusicRobot.

Is this source code used for @Spotify_downloa_bot?

No, this bot was the inspiration to build our bot. You can see our bot is entirely different, and some features will be implemented in this repository.

Deployment

Easy way to deploy on Local/VPS

  1. First, add variables in config.env:
    apt update && apt upgrade -y 
    apt install git ffmpeg python3 python3-pip -y
    git clone https://github.com/Masterolic/Spotify-Downloader.git 
    cd Spotify-Downloader/
    pip3 install -r requirements.txt 
    python3 -m mbot 

Docker

  1. Build and run the Docker image:
    docker build . -t musicbot
    docker run musicbot  

Config Example

Add these variables in config.env:

Required Environment Variables

Get api_id and api_hash from my.telegram.org (required)

API_ID = ""
API_HASH = ""

Your Telegram bot token (required)

BOT_TOKEN = ""

ID of the owner of the bot (not username) (required)

OWNER_ID = ""

Spotify Client Secret (get it from developers.spotify.com) (required)

SPOTIPY_CLIENT_SECRET = ""

Spotify Client ID (get it from developers.spotify.com) (required)

SPOTIPY_CLIENT_ID = ""

Optional Environment Variables

Users with God permission (separate them with spaces) (optional)

SUDO_USERS = ""

Chats that can use the bot (separate them with spaces) (optional)

AUTH_CHATS = ""

Group ID for the log channel or leave it empty if not required (optional)

LOG_GROUP = ""

Add your group ID for getting error log messages or leave it empty if not required (optional)

BUG = ""

Get it from https://genius.com/developers (optional)

GENIUS_API = ""

Temporary file storage path (optional)

XDG_CACHE_HOME = "~/.tmp"

Paste your proxy URL here or leave it empty if not required (optional)

FIXIE_SOCKS_HOST = ""

Pass True to make F_Sub enabled (default to False) (optional)

F_SUB = False

Pass channel ID username or ID that starts with -100 (optional)

F_SUB_CHANNEL_ID = ""

Pass the invite link to the channel (e.g., https://t.me/username or https://t.me/+jwjjwjw) (optional)

F_SUB_CHANNEL_INVITE_LINK = ""

Donation

Please support me by buying me a pizza using the link below: Buy Me A Pizza

Feedback

Rate our bot FEEDBACK

About

A Simple Open Source Spotify Downloader Bot for Telegram.

Contact

If you need any help or want to provide feedback, don't hesitate to contact me:

About

A telegram bot to download Spotify songs from yt and saavn

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages