Periodically post Bitcoin price updates to a group.
NOTE: This bot is in active development. Installation instructions may not work from time to time.
Set up secrets
- Send the
/newbot
command to BotFather through Telegram and follow the instructions to set up your bot however you want. - Copy the HTTP API token into the
launch.bash
file, replacing<YOUR BOT TOKEN HERE>
. - Get the group chat ID or user ID you want to deliver updated prices to.
- Copy this ID into the
<YOUR CHAT ID HERE>
field oflaunch.bash
. The ID might contain a minus (-
) sign, that's OK, don't remove it.
Install dependencies
- If necessary, install pip.
- Run
pip3 install python-telegram-bot numpy requests --upgrade --user
from a commandline or follow the official documentation
Test the bot
- Run
bash launch.bash
in a terminal. If everything is correctly set up, your bot should have delivered the message to the chat ID you've set up.
Set up automatic updates
- On a Unix system, you can use
crontab
to run the script at regular intervals and deliver updated prices. You can consult this file for examples on setting up a crontab file.