Layer 220
PaymentsCreateStarGiftCollection
Create a star gift collection.
method
Users
payments.createStarGiftCollection#1f4a0e87 peer:InputPeer title:string stargift:Vector<InputSavedStarGift> = StarGiftCollection;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer where to create the collection. |
| Title | string | Title of the collection. |
| Stargift | Vector<InputSavedStarGift> | Gifts added to the collection. |
Returns
StarGiftCollectionPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// PaymentsCreateStarGiftCollection - positional arguments result, err := client.PaymentsCreateStarGiftCollection(&tg.InputPeerUser{UserID: int64(123456789)}, "...", []tg.InputSavedStarGift{&tg.InputSavedStarGift{}}) if err != nil { // handle error } // result is *tg.StarGiftCollection