payments.UpdateStarGiftCollection

class pyrogram.raw.functions.payments.UpdateStarGiftCollection

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

Details:
  • Layer: 223

  • ID: 4FDDBEE7

Parameters:
  • peer (InputPeer) – Peer that owns the collection.

  • collection_id (int 32-bit) – Collection ID.

  • title (str, optional) – Title of the collection, to rename the collection.

  • delete_stargift (List of InputSavedStarGift, optional) – Can contain a list of gifts to remove from the collection.

  • add_stargift (List of InputSavedStarGift, optional) – Can contain a list of gifts to add to the collection.

  • order (List of InputSavedStarGift, optional) – Can contain the new gift order.

Returns:

StarGiftCollection

TL Schema

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

Parameter Tree

UpdateStarGiftCollection
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── collection_idint
├── titlestring (optional)
├── delete_stargiftVector < InputSavedStarGift > (optional)
│ │ └── msg_idint
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── saved_idlong
│ └── slugstring
├── add_stargiftVector < InputSavedStarGift > (optional)
│ │ └── msg_idint
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── saved_idlong
│ └── slugstring
└── orderVector < InputSavedStarGift > (optional)
│ └── msg_idint
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── saved_idlong
└── slugstring

Example

await app.invoke(
    UpdateStarGiftCollection(
        peer=await app.resolve_peer(chat_id),
        collection_id=0,
        title="text",
        delete_stargift=[
                InputSavedStarGiftUser(msg_id=0)
            ],
        add_stargift=[
                InputSavedStarGiftUser(msg_id=0)
            ],
        order=[
                InputSavedStarGiftUser(msg_id=0)
            ],
    )
)