Transfer a collectible gift to another user or channel: can only be used if transfer is free (i.e. messageActionStarGiftUnique.transfer_stars
is not set); see here » for more info on the full flow (including the different flow to use in case the transfer isn't free).
Method schema is available as of layer 198. Switch »
Name | Type | Description |
---|---|---|
stargift | InputSavedStarGift | The gift to transfer. |
to_id | InputPeer | Destination peer. |
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 | PEER_ID_INVALID | The provided peer id is invalid. |
400 | SAVED_ID_EMPTY | The passed inputSavedStarGiftChat.saved_id is empty. |
400 | STARGIFT_NOT_FOUND | The specified gift was not found. |
400 | STARGIFT_OWNER_INVALID | You cannot transfer or sell a gift owned by another user. |
400 | STARGIFT_PEER_INVALID | The specified inputSavedStarGiftChat.peer is invalid. |
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.
A gift » was upgraded to a collectible gift ».
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.