payments.createStarGiftCollection #

Create a star gift collection ».

Layer 223

starGiftCollection#9d6b13b0 flags:# collection_id:int title:string icon:flags.0?Document gifts_count:int hash:long = StarGiftCollection;
---functions---
payments.createStarGiftCollection#1f4a0e87 peer:InputPeer title:string stargift:Vector<InputSavedStarGift> = StarGiftCollection;

Parameters #

NameTypeDescription
peerInputPeerPeer where to create the collection.
titlestringTitle of the collection.
stargiftVector<InputSavedStarGift>Gifts added to the collection.

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.