iStar API

for Telegram

Enable your users to purchase Telegram Stars and Premium subscriptions directly through your application.

Purchased
10:00
user@alexdevbought500 Stars
payment viaTONamount4.99 TON
Premium Gift
10:00
from@john_cryptogifted3 months Premium
to@anna_design

API Features

Our API provides a comprehensive set of features to enable Telegram Stars and Premium purchases.

Framework Agnostic

Support for popular frameworks, including React, Vue, Svelte, Astro, Solid, Next.js, Nuxt, Tanstack Start, Hono, and more.

Telegram Stars Purchase

Allow your users to purchase Telegram Stars directly through your application with a simple API call.

Premium Subscription

Enable users to subscribe to Telegram Premium with various subscription plans and manage their premium features.

Secure Transactions

All transactions are processed securely with industry-standard encryption, authentication, and TLS protection.

Simple REST API

Our REST API works with any programming language or framework. Easy integration with just a few API calls.

Transaction History

Access detailed transaction history and reports for all purchases made through your application.

Simple API

Integration

Our API lets developers easily integrate Telegram Stars and Premium purchases, enabling users to buy and manage premium features with just a few calls.

JavascriptPythonNode.Js
010203040506070809101112131415161718192021
async function purchaseTelegramPremium(userId, plan) {
try {
const response = await fetch('', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
quantity,
recipient_hash: 'user_telegram_hash',
username: 'user_telegram_username'
})
});
const data = await response.json();
return data;
} catch (error) {
console.error('Error purchasing Telegram Premium:', error);
throw error;
}
}

We Like Keeping Things Simple

One Plan, One Price

5%

No setup fees
No monthly subscription
No hidden charges
Pay only when your users make purchases
Get Started
istar