Upgrade a gift to a collectible gift: can only be used if the upgrade was already paid by the gift sender; see here » for more info on the full flow (including the different flow to use in case the upgrade was not paid by the gift sender).
Method schema is available as of layer 198. Switch »
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
keep_original_details | flags.0?true | Set this flag to keep the original gift text, sender and receiver in the upgraded gift as a starGiftAttributeOriginalDetails attribute. |
stargift | InputSavedStarGift | The gift to upgrade |
Code | Type | Description |
---|---|---|
400 | BUSINESS_CONNECTION_INVALID | The connection_id passed to the wrapping invokeWithBusinessConnection call is invalid. |
400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
400 | PAYMENT_REQUIRED | Payment is required for this action, see here » for more info. |
400 | SAVED_ID_EMPTY | The passed inputSavedStarGiftChat.saved_id is empty. |
400 | STARGIFT_ALREADY_CONVERTED | The specified star gift was already converted to Stars. |
400 | STARGIFT_ALREADY_UPGRADED | The specified gift was already upgraded to a collectible gift. |
400 | STARGIFT_UPGRADE_UNAVAILABLE | A received gift can only be upgraded to a collectible gift if the messageActionStarGift/savedStarGift.can_upgrade flag is set. |
Info about the sender, receiver and message attached to the original gift », before it was upgraded to a collectible gift ».
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.
Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.
You received a gift, see here » for more info.
Represents a gift owned by a peer.