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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer where to create the collection. |
Title | string | yes | Title of the collection. |
Stargift | []InputSavedStarGiftClass | yes | Gifts added to the collection. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.createStarGiftCollection#1f4a0e87