CRMchat APIBeta
Telegram APIPayments

payments.getStarGiftUpgradeAttributes

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/payments.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 ». The result may also include RawStarGiftAttributeModel constructors with the crafted flag set: these models are reserved for crafting » and should be filtered out from regular upgrade previews (and vice versa).

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*

Obtains the full list of just the collectible attributes that may appear for a gift type once it's upgraded to a collectible gift ». The result may also include RawStarGiftAttributeModel constructors with the crafted flag set: these models are reserved for crafting » and should be filtered out from regular upgrade previews (and vice versa).

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/payments.getStarGiftUpgradeAttributes" \  -H "Content-Type: application/json" \  -d '{    "params": {      "giftId": "string"    }  }'
{  "result": {    "_": "payments.starGiftUpgradeAttributes",    "attributes": [      {        "_": "starGiftAttributeModel",        "crafted": true,        "name": "string",        "document": {          "_": "documentEmpty",          "id": "string"        },        "rarity": {          "_": "starGiftAttributeRarity",          "permille": 0        }      }    ]  }}