A Telegram bot written in python that downloads music from YouTube and send it into the chat.
The bot filter out all the YouTube urls from the received message and send the downloaded audio back to the user.
- Pafy
- python-telegram-bot
- urlextract
- requests
- hashlib
- psycopg2
Create a bot on telegram using @botfather
Create an app on heroku
Create a public channel on telegram
Set environment variables in heroku app
- BOT_TOKEN = your bot API token
- HEROKU_APP_NAME = name of your heroku app
- POLLING : if you're running this on your local machine, please set POLLING = True else leave this if you're deploying on heroku
- AUDIO_DB : PostgreSQL DB link for audio management
- USER_DB : PostgreSQL DB link for user management
- OPEN_CHANNEL_USERNAME : Universal upload channel username, bot will upload files here and forward it to the user
Deploy the bot read here
- Making a desktop application that can be used by everyone on their machine by providing their bot API token