payments.GetStarGiftCollections
- class pyrogram.raw.functions.payments.GetStarGiftCollections
Fetches all star gift collections » of a peer.
- Details:
Layer:
223ID:
981B91DD
- Parameters:
peer (
InputPeer) – The peer.hash (
int64-bit) – Hash (generated as specified here ») using the starGiftCollection.hash field (not the collection_id field) of all collections returned by a previous method call, to avoid refetching the result if it hasn’t changed.
- Returns:
TL Schema
payments.getStarGiftCollections#981b91dd
peer:InputPeer
hash:long
= payments.StarGiftCollections
Parameter Tree
GetStarGiftCollections
├── 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└── hash →
longExample
await app.invoke(
GetStarGiftCollections(
peer=await app.resolve_peer(chat_id),
hash=0,
)
)