Telegram assistant for music-related groups.
To get an instance up and running, first you need to copy .env.template into .dev.env
or .prod.env (depending on your needs), and fill the required environment variables:
-
Refer to the @botfather to register a bot. The
client idandsecretgo into theTELEGRAM_CLIENT_IDandTELEGRAM_CLIENT_SECRETfields. -
Go to the spotify dev dashboard and register a new app. The
client idandsecretgo into the fieldsSPOTIPY_CLIENT_IDandSPOTIPY_CLIENT_SECRET. -
Get the
chat idfor the chat you wantmusicbotto work on. This can be done in telegram web, by heading into the chat you are interested in and looking into the browser's address bar. The 10 digit number after the#is the chat id (it should be a negative number):
you can use docker-compose:
docker-compose up -d
It should automatically fetch all requirements and spin up the server.
These are some examples of URLs/URIs the bot can handle. They can serve as quick reference while developing.
!spotify:track:3T5th2QfWIZGot5RhBxvaT
!spotify:album:76TPO2Tro9Z2dihxaxmxtd
!spotify:artist:5YUQk45IjdzzQ49G1Txzkk
!https://open.spotify.com/track/0NE9QEMV1ljhNC8WB6UqYC
!https://open.spotify.com/album/2yCvEuVw81j9FEggmvSS5p
!https://open.spotify.com/artist/4tZwfgrHOc3mvqYlEYSvVi
!https://www.youtube.com/watch?v=ZIhwP0LVwgU
!https://youtu.be/UKaoWWC9COQ
!https://www.youtube.com/watch?v=7daW5KQZ8LE
Which you can reply with:
https://open.spotify.com/track/0nLMjIuOsMjEq4IKuJ2twa?si=5f765bba25434b2f
No example of this at the moment.
!https://www.youtube.com/watch?v=W7ZIz4w9Edo

