starGiftUnique
starGiftUnique
Section titled “starGiftUnique”No description provided by the pinned schema.
Signature
Section titled “Signature”starGiftUnique#85f0a9cd flags:# require_premium:flags.6?true resale_ton_only:flags.7?true theme_available:flags.9?true burned:flags.14?true crafted:flags.15?true id:long gift_id:long title:string slug:string num:int owner_id:flags.0?Peer owner_name:flags.1?string owner_address:flags.2?string attributes:Vector<StarGiftAttribute> availability_issued:int availability_total:int gift_address:flags.3?string resell_amount:flags.4?Vector<StarsAmount> released_by:flags.5?Peer value_amount:flags.8?long value_currency:flags.8?string value_usd_amount:flags.8?long theme_peer:flags.10?Peer peer_color:flags.11?PeerColor host_id:flags.12?Peer offer_min_stars:flags.13?int craft_chance_permille:flags.16?int = StarGift;Result type
Section titled “Result type”StarGift
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | No description provided by the pinned schema. |
| require_premium | flags.6?true | flags.6 | — | No description provided by the pinned schema. |
| resale_ton_only | flags.7?true | flags.7 | — | No description provided by the pinned schema. |
| theme_available | flags.9?true | flags.9 | — | No description provided by the pinned schema. |
| burned | flags.14?true | flags.14 | — | No description provided by the pinned schema. |
| crafted | flags.15?true | flags.15 | — | No description provided by the pinned schema. |
| id | long | — | — | No description provided by the pinned schema. |
| gift_id | long | — | — | No description provided by the pinned schema. |
| title | string | — | — | No description provided by the pinned schema. |
| slug | string | — | — | No description provided by the pinned schema. |
| num | int | — | — | No description provided by the pinned schema. |
| owner_id | flags.0?Peer | flags.0 | — | No description provided by the pinned schema. |
| owner_name | flags.1?string | flags.1 | — | No description provided by the pinned schema. |
| owner_address | flags.2?string | flags.2 | — | No description provided by the pinned schema. |
| attributes | Vector | — | — | No description provided by the pinned schema. |
| availability_issued | int | — | — | No description provided by the pinned schema. |
| availability_total | int | — | — | No description provided by the pinned schema. |
| gift_address | flags.3?string | flags.3 | — | No description provided by the pinned schema. |
| resell_amount | flags.4?Vector | flags.4 | — | No description provided by the pinned schema. |
| released_by | flags.5?Peer | flags.5 | — | No description provided by the pinned schema. |
| value_amount | flags.8?long | flags.8 | — | No description provided by the pinned schema. |
| value_currency | flags.8?string | flags.8 | — | No description provided by the pinned schema. |
| value_usd_amount | flags.8?long | flags.8 | — | No description provided by the pinned schema. |
| theme_peer | flags.10?Peer | flags.10 | — | No description provided by the pinned schema. |
| peer_color | flags.11?PeerColor | flags.11 | — | No description provided by the pinned schema. |
| host_id | flags.12?Peer | flags.12 | — | No description provided by the pinned schema. |
| offer_min_stars | flags.13?int | flags.13 | — | No description provided by the pinned schema. |
| craft_chance_permille | flags.16?int | flags.16 | — | No description provided by the pinned schema. |
| Parameter | Bit | Meaning |
|---|---|---|
| require_premium | 6 | Controlled by flags; present when this bit is set. |
| resale_ton_only | 7 | Controlled by flags; present when this bit is set. |
| theme_available | 9 | Controlled by flags; present when this bit is set. |
| burned | 14 | Controlled by flags; present when this bit is set. |
| crafted | 15 | Controlled by flags; present when this bit is set. |
| owner_id | 0 | Controlled by flags; present when this bit is set. |
| owner_name | 1 | Controlled by flags; present when this bit is set. |
| owner_address | 2 | Controlled by flags; present when this bit is set. |
| gift_address | 3 | Controlled by flags; present when this bit is set. |
| resell_amount | 4 | Controlled by flags; present when this bit is set. |
| released_by | 5 | Controlled by flags; present when this bit is set. |
| value_amount | 8 | Controlled by flags; present when this bit is set. |
| value_currency | 8 | Controlled by flags; present when this bit is set. |
| value_usd_amount | 8 | Controlled by flags; present when this bit is set. |
| theme_peer | 10 | Controlled by flags; present when this bit is set. |
| peer_color | 11 | Controlled by flags; present when this bit is set. |
| host_id | 12 | Controlled by flags; present when this bit is set. |
| offer_min_stars | 13 | Controlled by flags; present when this bit is set. |
| craft_chance_permille | 16 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.types import StarGiftUniquePublic access: miniproto.raw.types.StarGiftUnique.
Safe usage shape
Section titled “Safe usage shape”from miniproto.raw.types import StarGiftUnique
# Naming the raw constructor class is local only; it performs no I/O or network request.constructor_type = StarGiftUniqueResult family
Section titled “Result family”Relationships
Section titled “Relationships”- Result family:
StarGift - Related constructors:
starGift - Accepted by:
chatThemeUniqueGift,messageActionStarGift,messageActionStarGiftPurchaseOffer,messageActionStarGiftPurchaseOfferDeclined,messageActionStarGiftUnique,payments.resaleStarGifts,payments.starGiftAuctionState,payments.starGifts,payments.uniqueStarGift,savedStarGift,starGiftActiveAuctionState,starsTransaction,webPageAttributeStarGiftAuction,webPageAttributeUniqueStarGift
Provenance
Section titled “Provenance”- layer: 228
- structural source:
tdlib - canonical schema: https://raw.githubusercontent.com/tdlib/td/refs/heads/master/td/generate/scheme/telegram_api.tl
- prose merge precedence: TDLib → Telegram Desktop → Core JSON
- source note: Canonical structure is the pinned TDLib telegram_api.tl; Layer 228 comes only from the matching Telegram Desktop end-of-file marker; core.telegram.org inputs enrich documentation and RPC error metadata without overriding structure.
Source-diff notes
Section titled “Source-diff notes”- tdlib_vs_core: changed_count=68; core_only_count=1; overlap_count=2302; tdlib_only_count=158
- tdlib_vs_tdesktop: changed_count=0; overlap_count=2448; tdesktop_only=null; tdlib_only=accessPointRule, ephemeral.editMessage, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret, updateEphemeralBotCallbackQuery