Skip to content
This repository was archived by the owner on Jun 21, 2026. It is now read-only.

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Stars Payment Bot Logo

Telegram Stars Payment Bot

Reference integration for Telegram Stars payments: invoices, refunds, paid media, and balance checks.

Report Bug · Request Feature · Contact Author


Features

  • 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>

Screenshot / Example

Example Stars Payment Flow

Quick Start

1. Clone & Install

git clone https://github.com/bohd4nx/stars-payment.git
cd stars-payment
pip install -r requirements.txt

2. Configuration

Create .env from .env.example and set:

BOT_TOKEN=your_bot_token_here

3. Run

python main.py

Commands

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!

About

Elegant Telegram Stars payments with aiogram 3.x — invoices, refunds, paid media, and balance tracking.

Topics

Resources

Stars

45 stars

Watchers

3 watching

Forks

Used by

Contributors

Languages