Telegram Bot for LN Laisees
Sample Laisee for CNY generated by the telegram bot. See more information at: https://laisee.org
You must have rsvg-convert installed
sudo apt install librsvg2-bin
Requires at least python3.8
- /help - get help commands, and a welcome message on how to use the bot
- /start - automatically creates a wallet on LNBITS with LNURLp extension.
- Automatically creates a lnaddress with format of [email protected], based on the telegram username.
- /rates - what daily exchange rate is between sats to hkd and usd
- /laisee - /laisee username, Sends a laisee to another, has sub menu pick image/msg. cannot send to user if they don't have a telegram account, notify user their recipient needs to start a conversation in order to receive their gift.
- /send - /send telegram username
- /invoice - /invoice , generate lightning invoice
- /balance - get current wallet balance on lnbits
- Top Up Wallet
[WARNING: if end user modifies metadata on lnbits or changes TG name, the LN address needs to be updated on github, these two are connected. ]
- see fill command above, metadata for LN address that must be synced between lnbits and github are below:
- amount: 100- 100000 sat
- on success: display message
- dispatches webhook to : <<>>
- /lndhub or /bluewallet - get LNDHUB invoice url or admin url [admin, invoice sub command] that can be used w/external wallet
- /withdraw - get LNURL Withdraw QR code to drain wallet
========
-
[Infrastructure] pylnbits module - clean up unit tests.
-
[Infrastructure] Supabase -
- Data:
- TG Username
- LN Address ([email protected])
- LNBits url
- invoice_key (lnbits, needed for send/receive/lookup functions)
- admin_key (lnbits, needed to enable extensions and create lnurlp, used with LN Addresses)
- Email Address (tied to auth on supabase, accessible via web interface)
- optional avatar (web interface, for future implementation)
- optional website. (web interface)
- Data:
-
[FrontEnd] Telegram: Stitch above together with Telegram bot menu and methods
-
[Infrastructure] LN Addresses:
- LN Address entries by updating git repo: github.com/bitkarrot/laisee-frontpage
- deployed site has .well-known enabled
-
[FrontEnd] Web framework: https://laisee.org/
- can be easily extended in future to embed lnbits functions
- supabase backend