payments.CreateStarGiftCollection

class pyrogram.raw.functions.payments.CreateStarGiftCollection

Create a star gift collection ».

Details:
  • Layer: 227

  • 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
├── 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
├── title → string
└── stargift → Vector < InputSavedStarGift >
│ └── msg_id → int
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── saved_id → long
└── slug → string

Example

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