Telegram APIPayments
payments.getStarsRevenueWithdrawalUrl
Withdraw funds from a channel or bot's star balance ».
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*
Withdraw funds from a channel or bot's star balance ».
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/payments.getStarsRevenueWithdrawalUrl" \ -H "Content-Type: application/json" \ -d '{ "params": { "peer": { "_": "inputPeerEmpty" }, "password": { "_": "inputCheckPasswordEmpty" } } }'{ "result": { "_": "payments.starsRevenueWithdrawalUrl", "url": "string" }}getStarsRevenueStats
Get [Telegram Star revenue statistics »](https://core.telegram.org/api/stars).
getStarsStatus
Get the current [Telegram Stars balance](https://core.telegram.org/api/stars) of the current account (with peer=`RawInputPeerSelf`), or the stars balance of the bot or channel specified in peer.