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.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
unsave | true | いいえ | If set, hides the gift from our profile. |
stargift | InputSavedStarGift | はい | 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. |
レスポンス
Bool
MTProto RPC
- 400 · MESSAGE_ID_INVALID — The provided message id is invalid.
- 400 · SAVED_ID_EMPTY — The passed inputSavedStarGiftChat.saved_id is empty.
- 400 · STARGIFT_OBJECT_INVALID — The specified star gift object is invalid.
- 400 · STARGIFT_OWNER_INVALID — You cannot transfer or sell a gift owned by another user.
- 400 · USER_ID_INVALID — The provided user ID is invalid.