- Use /start to begin (this will show you your ID) or /help to view all available commands.
- Just give me the YouTube link and I will send you back the mp3 converted from the video. 😁
- Now yt2audiobot works either with the videos or the playlists!
# pip install -r requirements.txt
or you can use the script setup_venv_and_db
to create a virtual environment for Python 2.7 and initialize the database
Create a file named SECRETS.txt
in the root folder based of EXAMPLE_SECRETS.txt
.. It needs to have the following lines:
- Your telegram username so you can be the root of your bot and can add other users or admins
- The bot access token! Get it simply by talking to BotFather and follow a few simple steps
- The musixmatch api key obtainable by registering at this link
- The spotify application Client ID
- The spotify application Client Secret
Just use ./startstop
to run it or stop it. You can also add start/stop
parameter.
I have created the deploy
script to easily update the code on my server. If you want to use it, it is probably a great base but I think you will have to tune it for your needs..
- eternnoir (https://github.com/eternnoir/pyTelegramBotAPI)
- rg3 (https://github.com/rg3/youtube-dl/)
- coleifer (https://github.com/coleifer/peewee)
for these amazing libraries. ❤️
- I don't have so much time to work at this, so the code can be a bit ugly. As soon as I can I'll put my hands and time on this project.
- Merge the databases.. I don't even know why I created them separately by the first time!
- Users management for root and admins → list, ban, etc.
- Audio management for root and admins → list, delete, etc.
- Increase of the usability.. Telegram updates incessantly!
- Make it works on Python 3.3+ at least!
- Think about moving to python-telegram-bot