A telegram tipbot which utilises a REST api and python-bitcoin-utils
- Create a
configs
folder and make a newconfig.py
file within it - Use the template below to suit your coin:
token = "BOT_API_TOKEN"
coin = {
"ticker": "COIN_TICKER",
"coin_name": "coin_name_lowercase",
"minFee": "MINIMUM_TX_RELAY_FEE",
"P2PKH_PREFIX": "PREFIX_IN_BYTE_FORM (EXAMPLE: b'\x3F')",
"P2SH_PREFIX": "PREFIX_IN_BYTE_FORM",
"WIF_PREFIX": "PREFIX_IN_BYTE_FORM",
"bech32": "bech32_segwit_prefix"
}
apiUrl = "API_URL_WITH_ADDRESSINDEX_ENABLED"
- Clone this repository and create configs directory like shown above.
- In the repository directory, run a python virtual environment
- Once virtual environment is running, run
pip install -r requirements.txt
. This will install all required libraries. - Once completed, run
python3 bot.py
. - Success! The bot is now running 😀