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.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
exclude_unsaved | true | Nein | Exclude gifts not pinned on the profile. |
exclude_saved | true | Nein | Exclude gifts pinned on the profile. |
exclude_unlimited | true | Nein | Exclude gifts that do not have the [starGift](https://core.telegram.org/constructor/starGift.md).`limited` flag set. |
exclude_unique | true | Nein | Exclude [collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts). |
sort_by_value | true | Nein | If set, sorts the gifts by price instead of reception date. |
exclude_upgradable | true | Nein | Exclude gifts that can be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts). |
exclude_unupgradable | true | Nein | Exclude gifts that cannot be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts). |
peer_color_available | true | Nein | 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 | Nein | 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 | Ja | 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 | Nein | Only returns gifts within the specified [collection »](https://core.telegram.org/api/gifts.md#gift-collections). |
offset | string | Ja | [Offset for pagination](https://core.telegram.org/api/offsets.md). |
limit | int | Ja | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |
Antworten
payments.SavedStarGifts
MTProto RPC
- 400 · BUSINESS_CONNECTION_INVALID – Die an den Wrapping-Aufruf [invokeWithBusinessConnection](https://core.telegram.org/api/business.md)] übergebene connection_id ist ungültig.
- 400 · COLLECTION_ID_INVALID – Die angegebene Sammlungs-ID ist ungültig.
- 400 · MSG_ID_INVALID – Ungültige Nachrichten-ID angegeben.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.