Git Product home page Git Product logo

spotify_telegram_bot's Introduction

Spotify Telegram Bot

Setup

Before being able to use this bot, some setup work is required.

Perequisites

Configuration

  • Create a new application at the spotify developer dashboard and go to it's overview page.
    • Get the Client ID and the Client Secret and copy them into the config.ini.
    • Go to Edit Settings and add http://localhost:/callback to the Redirect URIs. Click on Save.
  • Contact the @BotFather and create a new bot by texting him /newbot.
    • Follow his instructions until everything is ready to go.
    • Once the bot is created he will send you an access token. Copy this token into the config.ini.
  • In the section TELEGRAM in the config.ini enter your Telegram username as the ADMIN. Your Telegram username will look like this: @username. Leave out the @ at the beginning.
  • In the section TELEGRAM in the config.ini enter a password. Tell this to your guests, so they can use the bot.
  • In the section SPOTIFY in the config.ini enter your spotify username.

On the first start

You can now start up the bot via python main.py from the code directory. There are still two tasks to do after this, that will not be required again, unless you re-install the bot.

  • On start-up the bot will open a web page in your browser and ask for access permissions to your Spotify account. Once you give the permission you will be forwarded to another link. Copy this link into the terminal and press enter.

  • Contact the bot from the Telegram account you set as ADMIN and send him the /register command. This way, he can save your chat_id to contact you with live updates.

spotify_telegram_bot's People

Contributors

excidion avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.