payments.connectStarRefBot
Join a bot's affiliate program, becoming an affiliate »
Authorization
bearerAuth In: header
Path Parameters
Workspace ID
Telegram account ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Join a bot's affiliate program, becoming an affiliate »
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/payments.connectStarRefBot" \ -H "Content-Type: application/json" \ -d '{ "params": { "peer": { "_": "inputPeerEmpty" }, "bot": { "_": "inputUserEmpty" } } }'{ "result": { "_": "payments.connectedStarRefBots", "count": 0, "connectedBots": [ { "_": "connectedBotStarRef", "revoked": true, "url": "string", "date": 0, "botId": 0, "commissionPermille": 0, "durationMonths": 0, "participants": "string", "revenue": "string" } ], "users": [ { "_": "userEmpty", "id": 0 } ] }}clearSavedInfo
Clear saved payment information
convertStarGift
Convert a [received gift »](https://core.telegram.org/api/gifts) into Telegram Stars: this will permanently destroy the gift, converting it into `RawStarGift`.convert_stars [Telegram Stars](https://core.telegram.org/api/stars), added to the user's balance. Note that `RawStarGift`.convert_stars will be less than the buying price (`RawStarGift`.stars) of the gift if it was originally bought using Telegram Stars bought a long time ago.