/BitcoinTelegramBot

Periodically post Bitcoin price updates to a chat.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

BitcoinTelegramBot

Periodically post Bitcoin price updates to a group.

NOTE: This bot is in active development. Installation instructions may not work from time to time.

How to use

Step 1

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 of launch.bash. The ID might contain a minus (-) sign, that's OK, don't remove it.

Step 2

Install dependencies

Step 3

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.

Step 4 (optional)

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.