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.
- 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
.
- 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.
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.
Contributions are welcome! If you find a bug or have a feature request, please open an issue. If you want to contribute code, please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.