payments.saveStarGift #

Display or remove a received or hosted gift » from our profile.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
payments.saveStarGift#2a2a697c flags:# unsave:flags.0?true stargift:InputSavedStarGift = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
unsaveflags.0?trueIf set, hides the gift from our profile.
stargiftInputSavedStarGiftThe gift to display or remove. A hosted collectible gift » may be used by its host or owner.

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400SAVED_ID_EMPTYThe passed inputSavedStarGiftChat.saved_id is empty.
400STARGIFT_OBJECT_INVALIDThe specified star gift object is invalid.
400STARGIFT_OWNER_INVALIDYou cannot transfer or sell a gift owned by another user.
400USER_ID_INVALIDThe provided user ID is invalid.

Telegram Gifts #

Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.