CRMchat APIBeta
Telegram APIPayments

payments.toggleStarGiftsPinnedToTop

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

Pins a received gift on top of the profile of the user or owned channels by using payments.RawToggleStarGiftsPinnedToTopRequest.

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*

Pins a received gift on top of the profile of the user or owned channels by using payments.RawToggleStarGiftsPinnedToTopRequest.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/payments.toggleStarGiftsPinnedToTop" \  -H "Content-Type: application/json" \  -d '{    "params": {      "peer": {        "_": "inputPeerEmpty"      },      "stargift": [        {          "_": "inputSavedStarGiftUser",          "msgId": 0        }      ]    }  }'
{  "result": true}