Reference integration for Telegram Stars payments: invoices, refunds, paid media, and balance checks.
- Example of Stars payment flow using
/pay <amount> - Optional payment link flow (also included in
payment.py) - Refund a specific payment or all user transactions with
/refund <user_id> [transaction_id] - Check bot balance with
/balance - Send paid media with
/media <amount>
git clone https://github.com/bohd4nx/stars-payment.git
cd stars-payment
pip install -r requirements.txtCreate .env from .env.example and set:
BOT_TOKEN=your_bot_token_herepython main.py| Command | Description |
|---|---|
/start |
Show integration overview |
/pay <amount> |
Create a Stars invoice |
/refund <user_id> [transaction_id] |
Refund a payment (specific or all for user) |
/balance |
Show current Stars balance |
/media <amount> |
Send paid media with Stars price |
Made with ❤️ by @bohd4nx
Star ⭐ this repo if it helps your Telegram payments!
