Skip to content

Template telegram bot with lnbits as backend in python3

License

Notifications You must be signed in to change notification settings

lightningames/lnbitsbot-py

Repository files navigation

lnbitsbot-py

A starter template for running bots based off of lnbits.com or your own install.

Basic outline with lnbits as the backend for a python TG bot:

  • create a wallet on lnbits through User Manager
  • create and send invoices
  • pay lightning invoices
  • link user to lnbits web interface
  • Use the pylnbits sdk

Getting Started

git clone https://github.com/lightningames/lnbitsbot-py
cd lnbitsbot-py
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -e .

See .env.example for the specific ID, Hash, and Token you will need to create your own bot.

You will need to create a config.yml file in the root directory with the following information:

lnbits_url: ""
in_key: ""
admin_key: ""

About

Template telegram bot with lnbits as backend in python3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published