CRMchat APIBeta
Telegram APIPayments

payments.getStarGiftUpgradePreview

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/payments.getStarGiftUpgradePreview

Obtain a preview of the possible attributes (chosen randomly) a gift » can receive after upgrading it to a collectible gift », see here » for more info.

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 a preview of the possible attributes (chosen randomly) a gift » can receive after upgrading it to a collectible gift », see here » for more info.

Response Body

application/json

application/json

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