payments.CreateStarGiftCollection

class pyrogram.raw.functions.payments.CreateStarGiftCollection

Create a star gift collection ».

Details:
  • Layer: 223

  • ID: 1F4A0E87

Parameters:
  • peer (InputPeer) – Peer where to create the collection.

  • title (str) – Title of the collection.

  • stargift (List of InputSavedStarGift) – Gifts added to the collection.

Returns:

StarGiftCollection

TL Schema

payments.createStarGiftCollection#1f4a0e87
peer:InputPeer
title:string
stargift:Vector<InputSavedStarGift>

= StarGiftCollection

Parameter Tree

CreateStarGiftCollection
├── 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
├── titlestring
└── stargiftVector < InputSavedStarGift >
│ └── msg_idint
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── saved_idlong
└── slugstring

Example

await app.invoke(
    CreateStarGiftCollection(
        peer=await app.resolve_peer(chat_id),
        title="text",
        stargift=[
                InputSavedStarGiftUser(msg_id=0)
            ],
    )
)