payments.getStarGiftCollections

Fetches all star gift collections » of a peer.

 Method schema is available as of layer 210. Switch »

Parameters

Name Type Description
peer InputPeer The peer.
hash long 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.

Result

payments.StarGiftCollections

Only users can use this method

Possible errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

Pagination in the API

How to fetch results from large lists of objects.

starGiftCollection

Represents a star gift collection ».

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.