A Telegram bot that uses Stripe Checkout for payments and manages user wallet balances via SQLite.
- Stripe Checkout integration (card, iDEAL, Bancontact)
- SQLite-based wallet system
- Automatic balance updates after successful payments
- Inline buttons and interactive Telegram UI
- Admin commands:
- Add/Subtract/Set balance
- View user payments and balances
- User starts the bot and enters the amount to top-up.
- Bot calculates Stripe fees and generates a payment button.
- User pays via Stripe Checkout.
- HTTP server listens for Stripe success callback.
- User balance is updated in the local SQLite database.
- Clone this repo
- Replace
STRIPE_API
andBOT_TOKEN
in the script - Open port
81
or use ngrok to expose your HTTP server - Run the bot
- Python 3.8+
python-telegram-bot
stripe
sqlite3
Install with:
pip install python-telegram-bot stripe