payments.getSavedStarGifts
Fetch the full list of gifts » owned, received or hosted » by a peer.
Fetch the full list of [gifts »](https://core.telegram.org/api/gifts.md#list-all-received-gifts) owned, received or [hosted »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) by a peer.
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
exclude_unsaved | true | لأ | Exclude gifts not pinned on the profile. |
exclude_saved | true | لأ | Exclude gifts pinned on the profile. |
exclude_unlimited | true | لأ | Exclude gifts that do not have the [starGift](https://core.telegram.org/constructor/starGift.md).`limited` flag set. |
exclude_unique | true | لأ | Exclude [collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts). |
sort_by_value | true | لأ | If set, sorts the gifts by price instead of reception date. |
exclude_upgradable | true | لأ | Exclude gifts that can be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts). |
exclude_unupgradable | true | لأ | Exclude gifts that cannot be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts). |
peer_color_available | true | لأ | If set, only returns [collectible gifts](https://core.telegram.org/api/gifts.md#collectible-gifts) whose palette can be used as a [collectible message palette »](https://core.telegram.org/api/colors.md#collectible-message-palettes). |
exclude_hosted | true | لأ | If set, excludes [hosted collectible gifts »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts), returning only gifts owned or received by `peer`. |
peer | InputPeer | أيوه | Fetch only gifts owned, received or [hosted »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) by the specified peer, such as: a user, with peer=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md); a channel, with peer=[inputPeerChannel](https://core.telegram.org/constructor/inputPeerChannel.md); a [connected business user »](https://core.telegram.org/api/bots/connected-business-bots.md) (when executing the method as a bot, over the business connection), with peer=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md). |
collection_id | int | لأ | Only returns gifts within the specified [collection »](https://core.telegram.org/api/gifts.md#gift-collections). |
offset | string | أيوه | [Offset for pagination](https://core.telegram.org/api/offsets.md). |
limit | int | أيوه | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |
الردود
payments.SavedStarGifts
MTProto RPC
- 400 · BUSINESS_CONNECTION_INVALID — The connection_id passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.
- 400 · COLLECTION_ID_INVALID — The specified collection ID is invalid.
- 400 · MSG_ID_INVALID — Invalid message ID provided.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.