telegram api method · layer 229 · #4fddbee7

payments.updateStarGiftCollection

usable by users

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

definition

payments.updateStarGiftCollection#4fddbee7 flags:# peer:InputPeer collection_id:int title:flags.0?string delete_stargift:flags.1?Vector<InputSavedStarGift> add_stargift:flags.2?Vector<InputSavedStarGift> order:flags.3?Vector<InputSavedStarGift> = StarGiftCollection;

parameters

nametypedescription
flags#Flags, see TL conditional fields
peerInputPeerPeer that owns the collection.
collection_idintCollection ID.
titleflags.0?stringTitle of the collection, to rename the collection.
delete_stargiftflags.1?Vector<InputSavedStarGift>Can contain a list of gifts to remove from the collection.
add_stargiftflags.2?Vector<InputSavedStarGift>Can contain a list of gifts to add to the collection.
orderflags.3?Vector<InputSavedStarGift>Can contain the new gift order.

returns

StarGiftCollection

errors (3)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400PEER_ID_INVALIDThe provided peer id is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 210–229

idlayers
#4fddbee7210–229