payments.getCraftStarGifts #

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

Layer 223

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 #

NameTypeDescription
gift_idlongIdentifier of the base gift type, equal to starGiftUnique.gift_id of the first selected gift.
offsetstringOffset for pagination.
limitintMaximum number of results to return, see pagination

Result #

payments.SavedStarGifts

Only users can use this method #

Possible errors #

CodeTypeDescription
400STARGIFT_INVALIDThe passed gift is invalid.

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.