telegram api method · layer 229 · #4fddbee7
payments.updateStarGiftCollection
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
peer | InputPeer | Peer that owns the collection. |
collection_id | int | Collection ID. |
title | string | Title of the collection, to rename the collection. |
delete_stargift | Vector<InputSavedStarGift> | Can contain a list of gifts to remove from the collection. |
add_stargift | Vector<InputSavedStarGift> | Can contain a list of gifts to add to the collection. |
order | Vector<InputSavedStarGift> | Can contain the new gift order. |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 210–229
| id | layers |
|---|---|
| #4fddbee7 | 210–229 |