Link Search Menu Expand Document

Constructor: starGiftCollection

Back to constructors index

Represents a star gift collection ».

Attributes:

NameTypeRequiredDescription
collection_idintYesThe ID of the collection.
titlestringYesTitle of the collection.
iconDocumentOptionalOptional icon for the collection, taken from the first gift in the collection.
gifts_countintYesNumber of gifts in the collection.
hashlongYesField to use instead of collection_id when generating the hash to pass to payments.getStarGiftCollections.

Type: StarGiftCollection

Example:

$starGiftCollection = ['_' => 'starGiftCollection', 'collection_id' => int, 'title' => 'string', 'icon' => Document, 'gifts_count' => int, 'hash' => long];