Withdraw funds from a channel or bot's star balance ».
payments.starsRevenueWithdrawalUrl#1dab80b7 url:string = payments.StarsRevenueWithdrawalUrl;
---functions---
payments.getStarsRevenueWithdrawalUrl#13bbe8b3 peer:InputPeer stars:long password:InputCheckPasswordSRP = payments.StarsRevenueWithdrawalUrl;
Name | Type | Description |
---|---|---|
peer | InputPeer | Channel or bot from which to withdraw funds. |
stars | long | Amount of stars to withdraw. |
password | InputCheckPasswordSRP | 2FA password, see here » for more info. |
payments.StarsRevenueWithdrawalUrl
Code | Type | Description |
---|---|---|
400 | PASSWORD_HASH_INVALID | The provided password hash is invalid. |
400 | PASSWORD_MISSING | You must enable 2FA before executing this operation. |
400 | PASSWORD_TOO_FRESH_%d | The password was modified less than 24 hours ago, try again in %d seconds. |
How to login to a user's account if they have enabled 2FA, how to change password.
Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.