payments.updateStarGiftCollection

Add or remove gifts from a star gift collection », or rename the collection.

 Method schema is available as of layer 210. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
peer InputPeer Peer that owns the collection.
collection_id int Collection ID.
title flags.0?string Title of the collection, to rename the collection.
delete_stargift flags.1?Vector<InputSavedStarGift> Can contain a list of gifts to remove from the collection.
add_stargift flags.2?Vector<InputSavedStarGift> Can contain a list of gifts to add to the collection.
order flags.3?Vector<InputSavedStarGift> Can contain the new gift order.

Result

StarGiftCollection

Only users can use this method

Possible errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

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.