TGbit
A simple skeleton Telegram shop bot for a testnet Bitcoin node. [client request]
Telegram Bot Shop
This is a simple skeleton Telegram bot shop that accepts testnet BTC nodes. It allows customers to place orders, and provides them with a Bitcoin address where they can send payment and it verify it.
Installation
- Clone the repository.
- Install the dependencies by running
pip install -r requirements.txt
. - Create a
.env
file and fill in the necessary configuration variables. An exampleconfig.py
file has been provided for you. - Run the bot using
python main.py
.
Usage
- For chat help
/help
- Start a chat with the bot.
- Type
/start
to see the list of available products. - Type the product number to place an order for the specified product.
- Follow the bot's instructions to complete payment.
Configuration
The following configuration variables are required in the .env
file:
BOT_TOKEN
: The API token for your Telegram bot.RPC_NODE
: The URL for the Bitcoin RPC node.BITCOIN_ADDRESS
: Your Bitcoin address for receiving payments.BLOCK_IO_API_KEY
: Your Block.io API key.BLOCK_IO_PIN
: Your Block.io PIN.