payments.getStarGifts
Get a list of available gifts, see here » for more info.
Authorization
bearerAuth In: header
Path Parameters
Workspace ID
Telegram account ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Get a list of available gifts, see here » for more info.
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/payments.getStarGifts" \ -H "Content-Type: application/json" \ -d '{ "params": { "hash": 0 } }'{ "result": { "_": "payments.starGiftsNotModified" }}getStarGiftCollections
Fetches all [star gift collections »](https://core.telegram.org/api/gifts#gift-collections) of a peer.
getStarGiftUpgradeAttributes
Obtains the full list of just the collectible attributes that may appear for a gift type once it's upgraded to a [collectible gift »](https://core.telegram.org/api/gifts#collectible-gifts). The result may also include `RawStarGiftAttributeModel` constructors with the crafted flag set: these models are reserved for [crafting »](https://core.telegram.org/api/gifts#crafting-collectible-gifts) and should be filtered out from regular upgrade previews (and vice versa).