Gifts

List sendable star gifts

Changed on

The Telegram star gifts a star_gift campaign can send right now, with an INDICATIVE per-gift price in currency at your wholesale terms. The binding price is locked when you confirm a campaign. Sold-out and otherwise unsendable gifts are not listed. comment_max_length is the longest gift comment Telegram accepts today.

The catalog is refreshed every few minutes; when it cannot be read the call answers 503 gift_catalog_unavailable rather than a stale list. Gift campaigns are enabled per tenant on request (the route answers 404 where they are not offered, 403 for a tenant without access). currency is required: the asset is never guessed.

get/v1/gifts

Request

  • Base URL
    https://api.mystars.tg
  • Auth
    API key in header X-Api-Key

Query parameters

currency'ton' | 'usdt_ton' required

The currency to price the gifts in (ton = the native coin GRAM, not USDT; usdt_ton = USDT). Required — a request without it is rejected with 400 bad_request, like every pricing route. Where USDT payments are not offered, usdt_ton answers 422 currency_not_available; the currency is checked before the catalog is read, so that 422 comes back even while the catalog would answer 503.

Response

The sendable gift catalog.

currency'ton' | 'usdt_ton' required

The asset the order is paid in. ton = the native coin GRAM (ex TON), sent as a plain transfer — it is not USDT on TON. usdt_ton = USDT (TON), sent as a jetton transfer. Required on every create and pricing request: a request without it is rejected with 400 bad_request.

comment_max_lengthinteger required
catalog_refreshed_atstring date-time nullable required

When the listed gifts were read from Telegram. The list, comment_max_length and this time come from one catalog read, so they always agree.

Changes