payments.getStarGiftUpgradeAttributes

Obtains the full list of just the collectible attributes that may appear for a gift type once it's upgraded to a collectible gift ».

The result may also include starGiftAttributeModel constructors with the crafted flag set: these models are reserved for crafting » and should be filtered out from regular upgrade previews (and vice versa).

 Method schema is available as of layer 220. Switch »

Parameters

Name Type Description
gift_id long Non-collectible base gift ID, from starGift.id

Result

payments.StarGiftUpgradeAttributes

Only users can use this method

Possible errors

Code Type Description
400 STARGIFT_INVALID The passed gift is invalid.

Related pages

starGift

Represents a star gift, see here » for more info.

Telegram Gifts

Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.

starGiftAttributeModel

The model of a collectible gift ».