payments.UpdateStarGiftCollection

class pyrogram.raw.functions.payments.UpdateStarGiftCollection

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

Details:
  • Layer: 227

  • 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
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── collection_id → int
├── title → string (optional)
├── delete_stargift → Vector < InputSavedStarGift > (optional)
│ │ └── msg_id → int
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── saved_id → long
│ └── slug → string
├── add_stargift → Vector < InputSavedStarGift > (optional)
│ │ └── msg_id → int
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── saved_id → long
│ └── slug → string
└── order → Vector < InputSavedStarGift > (optional)
│ └── msg_id → int
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── saved_id → long
└── slug → string

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)
            ],
    )
)