payments.saveStarGift
Display or remove a received or hosted gift » from our profile.
Display or remove a [received or hosted gift »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) from our profile.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
unsave | true | Nein | If set, hides the gift from our profile. |
stargift | InputSavedStarGift | Ja | The gift to display or remove. A [hosted collectible gift »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) may be used by its host or owner. |
Antworten
Bool
MTProto RPC
- 400 · MESSAGE_ID_INVALID – Die angegebene Nachrichten-ID ist ungültig.
- 400 · SAVED_ID_EMPTY – Das übergebene inputSavedStarGiftChat.saved_id ist leer.
- 400 · STARGIFT_OBJECT_INVALID – Das angegebene Sterngeschenkobjekt ist ungültig.
- 400 · STARGIFT_OWNER_INVALID – Sie können ein Geschenk, das einem anderen Benutzer gehört, nicht übertragen oder verkaufen.
- 400 · USER_ID_INVALID – Die angegebene Benutzer-ID ist ungültig.