StarGiftCollection#

class pyrogram.raw.types.StarGiftCollection#

Represents a star gift collection .

Constructor of StarGiftCollection.

Details:
  • Layer: 220

  • ID: 9D6B13B0

Parameters:
  • collection_id (int 32-bit) – The ID of the collection.

  • title (str) – Title of the collection.

  • gifts_count (int 32-bit) – Number of gifts in the collection.

  • hash (int 64-bit) – Field to use instead of collection_id when generating the hash to pass to payments.getStarGiftCollections.

  • icon (Document, optional) – Optional icon for the collection, taken from the first gift in the collection.

Functions:

This object can be returned by 2 functions.

payments.CreateStarGiftCollection

Create a star gift collection .

payments.UpdateStarGiftCollection

Add or remove gifts from a star gift collection , or rename the collection.