payments.reorderStarGiftCollections
Reorder the star gift collections » on an owned peer's profile.
func (c *Client) PaymentsReorderStarGiftCollections(ctx context.Context, request *PaymentsReorderStarGiftCollectionsRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsReorderStarGiftCollections(ctx, &tg.PaymentsReorderStarGiftCollectionsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The owned peer. |
Order | []int | yes | New collection order. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.reorderStarGiftCollections#c32af4cc