starGiftCollection #

Represents a star gift collection ».

Layer 223

starGiftCollection#9d6b13b0 flags:# collection_id:int title:string icon:flags.0?Document gifts_count:int hash:long = StarGiftCollection;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
collection_idintThe ID of the collection.
titlestringTitle of the collection.
iconflags.0?DocumentOptional icon for the collection, taken from the first gift in the collection.
gifts_countintNumber of gifts in the collection.
hashlongField to use instead of collection_id when generating the hash to pass to payments.getStarGiftCollections.

Type #

StarGiftCollection

payments.getStarGiftCollections #

Fetches all star gift collections » of a peer.

Telegram Gifts #

Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.