Telegram bot that controls your Raspicast device. This bot was created to make it easier to share connection to the Raspicast device without sharing ssh credentials.
Before starting this bot on your device, you should configure raspberry Pi as a Chromecast device.
You can follow the guide here: https://pimylifeup.com/raspberry-pi-chromecast
OPTIONAL
You can also configure it as a Spotify Connect client.
Check the tutorial here: https://github.com/dtcooper/raspotify
After you configured and tested your Raspicast, you are ready to go.
Above is an example of the bot response when someone is sending a link to play.
Please be sure that you have Python 3.6 installed.
I preffer to run the bot inside of the virtualenv. But you can do as you want and skip this section.
python3.6 -m venv .venv
This will create virtualenv inside .venv folder.
source .venv/bin/activate
Install all dependencies:
pip install -r requirements.txt
Create apiKey.txt file in the same folder as the raspicast_bot.py script with the bot's API key
which you retrieved from the BotFather when you created your bot in telegram.
Now you are ready to start the bot.
python raspicast_bot.py
RaspicastBot has aditionally a User Management support to restrict access to the bot. Use /admin command to add/remove/list users by their telegram username.
Please update the Admins list line with your telegram username to get access to the admin (user-management) functions.