payments.updateStarGiftCollection #

Add or remove gifts from a star gift collection », or rename the collection.

Layer 223

starGiftCollection#9d6b13b0 flags:# collection_id:int title:string icon:flags.0?Document gifts_count:int hash:long = StarGiftCollection;
---functions---
payments.updateStarGiftCollection#4fddbee7 flags:# peer:InputPeer collection_id:int title:flags.0?string delete_stargift:flags.1?Vector<InputSavedStarGift> add_stargift:flags.2?Vector<InputSavedStarGift> order:flags.3?Vector<InputSavedStarGift> = StarGiftCollection;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerPeer that owns the collection.
collection_idintCollection ID.
titleflags.0?stringTitle of the collection, to rename the collection.
delete_stargiftflags.1?Vector<InputSavedStarGift>Can contain a list of gifts to remove from the collection.
add_stargiftflags.2?Vector<InputSavedStarGift>Can contain a list of gifts to add to the collection.
orderflags.3?Vector<InputSavedStarGift>Can contain the new gift order.

Result #

StarGiftCollection

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

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.