Fragment Donor SDKSource

Version 0.1.3 · Registry installation commands use exact versions.

Telegram Stars and Premium API — Fragment Donor SDKs

Integrate Telegram Stars gifting and Premium with seven independent SDKs. Public service API, safe retry handling, and practical examples.

Fragment Donor exposes four endpoints for checking a Telegram username, gifting Stars or Premium, and reading TON/USDT balances. Python, Node.js/TypeScript, PHP, .NET, Go, Rust, and Ruby clients share one tested contract.

Direct use needs no service account. The optional Api-Key is a TonConsole provider key. Purchases still need your own wallet mnemonic and Fragment cookie.

The default quota is 30 requests per IP per minute across all four endpoints. Follow 429 FLOOD_WAIT and Retry-After. A request timeout does not prove that a payment failed: purchase calls are never retried automatically.

Example

curl "https://fragment.donor.uz/get-user-info/?username=durov"

Continue reading

Handle Telegram Stars API 429, Retry-After, and flood wait · Protect wallet credentials in API integrations · Fragment Donor API and SDK FAQ

OpenAPI 3.0 · Postman collection