Skip to content

A simple Telegram Tipbot made for sugar that does not use any daemon

License

Notifications You must be signed in to change notification settings

Nugetzrul3/SugarchainTGBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SugarchainTGBot

A telegram tipbot which utilises a REST api and python-bitcoin-utils

Config

  1. Create a configs folder and make a new config.py file within it
  2. 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"

How to run?

  1. Clone this repository and create configs directory like shown above.
  2. In the repository directory, run a python virtual environment
  3. Once virtual environment is running, run pip install -r requirements.txt. This will install all required libraries.
  4. Once completed, run python3 bot.py.
  5. Success! The bot is now running 😀

About

A simple Telegram Tipbot made for sugar that does not use any daemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages