Skip to main content

payments.createStarGiftCollection

Create a star gift collection ».

func (c *Client) PaymentsCreateStarGiftCollection(ctx context.Context, request *PaymentsCreateStarGiftCollectionRequest) (*StarGiftCollection, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.PaymentsCreateStarGiftCollection(ctx, &tg.PaymentsCreateStarGiftCollectionRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *StarGiftCollection
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesPeer where to create the collection.
TitlestringyesTitle of the collection.
Stargift[]InputSavedStarGiftClassyesGifts added to the collection.

Returns

*StarGiftCollection

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References