Layer 220
PaymentsGetStarGiftCollections
Fetches all star gift collections of a peer.
method
Users
payments.getStarGiftCollections#981b91dd peer:InputPeer hash:long = payments.StarGiftCollections;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | The peer. |
| Hash | long | Hash ( generated as specified here ) using the star Gift Collection. hash field ( not the collection_id field) of all collections returned by a previous method call, to avoid refetching the result if it hasn't changed. |
Returns
payments.StarGiftCollectionsPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// PaymentsGetStarGiftCollections - positional arguments result, err := client.PaymentsGetStarGiftCollections(&tg.InputPeerUser{UserID: int64(123456789)}, int64(0)) if err != nil { // handle error } // result is *tg.PaymentsStarGiftCollections