Guide · Telegram Stars

Selling SaaS access through Telegram with Stars subscriptions

How to sell SaaS access through Telegram with Stars subscriptions: mapping plans, linking Telegram users to accounts, renewals, cancellations and common pitfalls.

Published:

Selling SaaS access through Telegram with Stars subscriptions

Selling SaaS access through Telegram with Stars subscriptions works in three parts: a bot that sends a subscription invoice in Stars, a secure link between the Telegram user and their account in your service, and server logic that grants or removes access on each renewal or cancellation. Done well, users subscribe in two taps without entering card details, and you manage access from one place. This guide walks through the setup.

What you need before you start

  • A web or in-Telegram service with accounts. Your SaaS needs user accounts and a way to turn plan features on and off.
  • A bot connected to your backend. The bot sends invoices and receives payment updates.
  • A clear plan structure. Decide which features belong to which plan before you set prices.
  • Familiarity with Stars payments. Read our guide to Stars invoices and the business model of Stars subscriptions first.

Step-by-step instructions

  1. Map your plans to Stars subscriptions. Each paid plan becomes a subscription product with a price in Stars per period. Stars subscriptions currently renew on a fixed period set by Telegram; check the current value in the Bot API documentation before you design annual offers.
  2. Link the Telegram user to an account. From your web app, generate a one-time token and send the user to your bot with a deep link such as t.me/yourbot?start=TOKEN. When the bot receives /start TOKEN, it connects that Telegram user ID to the account and invalidates the token.
  3. Create the subscription invoice. Use createInvoiceLink with the currency XTR, the price and the subscription_period parameter. Put your plan and account reference in the payload.
  4. Grant access on the first payment. When successful_payment arrives, store the telegram_payment_charge_id, the subscription expiry date sent with the payment, and switch the account to the paid plan.
  5. Extend access on each renewal. Renewals arrive as new payments for the same subscription. Extend the access date each time and keep every charge ID.
  6. Handle cancellations. Users can cancel in Telegram, and your bot can cancel or re-enable renewal with editUserStarSubscription. A cancelled subscription normally stays active until the paid period ends, so keep access until the expiry date.
  7. Remove access when it expires. Run a daily job that downgrades accounts whose paid period has ended without a renewal.

Options and settings explained

DecisionOptionsAdvice
How users find the planInside the bot, in a mini app, or from your website via deep linkOffer the same plan names everywhere
Account linkingDeep link token, Log in with Telegram on your site, or Telegram-only accountsUse one-time tokens that expire quickly
Upgrades between plansCancel the old subscription and start a new one, or give the difference as creditExplain the rule in your help text
Free trialA free period in your own system before the first Stars paymentTrack trials by account to prevent repeats
Team plansOne payer, several linked Telegram usersLet the payer manage members in your web app

What users see

Users confirm the subscription in Telegram and can see and manage their Stars subscriptions in the app's settings; the exact menu can differ by app version. On your side, show the plan, the next renewal date and a cancel option in your web dashboard and in the bot, so users never feel trapped.

Common mistakes and how to avoid them

  • Linking accounts by username. Telegram usernames can change. Always link by the numeric user ID.
  • Reusable linking tokens. A token that works more than once lets someone attach their Telegram account to another person's SaaS account. Make tokens single-use and short-lived.
  • Cutting access at cancellation. Users paid for the whole period. Keep access until the expiry date.
  • Relying only on renewals arriving. If a renewal fails, no payment arrives. Use the stored expiry date as the source of truth and downgrade when it passes.
  • No support path. Subscriptions create more questions than one-time sales. Handle /paysupport and keep charge IDs so you can refund with refundStarPayment when needed.
  • Selling physical services this way. Stars are for digital goods and services. If your plan includes real-world services, those parts need a different payment route.

Pricing in Stars

Choose round amounts and keep the number of plans small. Remember that your earnings arrive in Stars and are withdrawn through Fragment after a hold period, so the value per Star can change. Review prices on a schedule rather than after every market move. When you do change a price, apply it to new subscribers first and give existing subscribers clear notice before their next renewal.

Where PayStars fits

Some subscribers, especially business users, prefer to top up Stars in bulk rather than through app store purchases. PayStars sells Stars to any public @username, starting from 50 Stars, paid from a USD balance topped up with USDT, and the current prices are always shown before payment. You can mention it in your billing help as one option.

FAQ

Can I sell SaaS subscriptions for Telegram Stars?

Yes, if the service is digital. Bots can create subscription invoices in Stars with createInvoiceLink and the subscription_period parameter.

How do I connect a Telegram user to their account on my website?

Generate a one-time token on your site and send the user to your bot with a deep link. When the bot receives the token, link the numeric user ID to the account.

What happens when a user cancels a Stars subscription?

Renewal stops, but the subscription normally stays active until the end of the paid period. Keep access until that date.

Can my bot cancel a user's subscription?

Yes. The Bot API method editUserStarSubscription lets a bot cancel or re-enable renewal of a user's subscription.

How do I know when to remove access?

Store the expiry date sent with each payment and run a daily job that downgrades accounts whose paid period has ended.

Sources

Buy Stars and Premium with USD (USDT)

Via API key: 0% (plain Fragment price). Via the website: 5%.

Get started