payments.GetStarGiftCollections

class pyrogram.raw.functions.payments.GetStarGiftCollections

Fetches all star gift collections » of a peer.

Details:
  • Layer: 223

  • ID: 981B91DD

Parameters:
  • peer (InputPeer) – The peer.

  • hash (int 64-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:

payments.StarGiftCollections

TL Schema

payments.getStarGiftCollections#981b91dd
peer:InputPeer
hash:long

= payments.StarGiftCollections

Parameter Tree

GetStarGiftCollections
├── 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
└── hashlong

Example

await app.invoke(
    GetStarGiftCollections(
        peer=await app.resolve_peer(chat_id),
        hash=0,
    )
)