Layer 227
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.

Gogram Example

// PaymentsCreateStarGiftCollection - positional arguments
result, err := client.PaymentsCreateStarGiftCollection(&tg.InputPeerUser{UserID: int64(777000)}, "Hello, World!", &tg.VectorInputSavedStarGift{})
if err != nil {
    // handle error
}
// result is *tg.StarGiftCollection

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.