Telegram APIPayments
payments.getCraftStarGifts
Obtain owned collectible gifts » of a specific type that can be used for crafting ».
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workspaceId*string
Workspace ID
accountId*string
Telegram account ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
params*
Obtain owned collectible gifts » of a specific type that can be used for crafting ».
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/payments.getCraftStarGifts" \ -H "Content-Type: application/json" \ -d '{ "params": { "giftId": "string", "offset": "string", "limit": 0 } }'{ "result": { "_": "payments.savedStarGifts", "count": 0, "chatNotificationsEnabled": true, "gifts": [ { "_": "savedStarGift", "nameHidden": true, "unsaved": true, "refunded": true, "canUpgrade": true, "pinnedToTop": true, "upgradeSeparate": true, "fromId": { "_": "peerUser", "userId": 0 }, "date": 0, "gift": { "_": "starGift", "limited": true, "soldOut": true, "birthday": true, "requirePremium": true, "limitedPerUser": true, "peerColorAvailable": true, "auction": true, "id": "string", "sticker": { "_": "documentEmpty", "id": "string" }, "stars": "string", "availabilityRemains": 0, "availabilityTotal": 0, "availabilityResale": "string", "convertStars": "string", "firstSaleDate": 0, "lastSaleDate": 0, "upgradeStars": "string", "resellMinStars": "string", "title": "string", "releasedBy": { "_": "peerUser", "userId": 0 }, "perUserTotal": 0, "perUserRemains": 0, "lockedUntilDate": 0, "auctionSlug": "string", "giftsPerRound": 0, "auctionStartDate": 0, "upgradeVariants": 0, "background": { "_": "starGiftBackground", "centerColor": 0, "edgeColor": 0, "textColor": 0 } }, "message": { "_": "textWithEntities", "text": "string", "entities": [ { "_": "messageEntityUnknown", "offset": 0, "length": 0 } ] }, "msgId": 0, "savedId": "string", "convertStars": "string", "upgradeStars": "string", "canExportAt": 0, "transferStars": "string", "canTransferAt": 0, "canResellAt": 0, "collectionId": [ 0 ], "prepaidUpgradeHash": "string", "dropOriginalDetailsStars": "string", "giftNum": 0, "canCraftAt": 0 } ], "nextOffset": "string", "chats": [ { "_": "chatEmpty", "id": 0 } ], "users": [ { "_": "userEmpty", "id": 0 } ] }}