payments.CreateStarGiftCollection
- class pyrogram.raw.functions.payments.CreateStarGiftCollection
Create a star gift collection ».
- Details:
Layer:
223ID:
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:
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│ ├──
InputPeerUserFromMessage│ │ ├── 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 →
stringExample
await app.invoke(
CreateStarGiftCollection(
peer=await app.resolve_peer(chat_id),
title="text",
stargift=[
InputSavedStarGiftUser(msg_id=0)
],
)
)