payments.getCraftStarGifts

Obtain owned collectible gifts » of a specific type that can be used for crafting ».

payments.savedStarGifts#95f389b1 flags:# count:int chat_notifications_enabled:flags.1?Bool gifts:Vector<SavedStarGift> next_offset:flags.0?string chats:Vector<Chat> users:Vector<User> = payments.SavedStarGifts;
---functions---
payments.getCraftStarGifts#fd05dd00 gift_id:long offset:string limit:int = payments.SavedStarGifts;

Parameters

Name Type Description
gift_id long Identifier of the base gift type, equal to starGiftUnique.gift_id of the first selected gift.
offset string Offset for pagination.
limit int Maximum number of results to return, see pagination

Result

payments.SavedStarGifts

Only users can use this method

Possible errors

Code Type Description
400 STARGIFT_INVALID The passed gift is invalid.

Related pages

starGiftUnique

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

The sticker that represents the gift is contained in a starGiftAttributeModel object in attributes.

Pagination in the API

How to fetch results from large lists of objects.

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.