payments.getStarsRevenueWithdrawalUrl #

Withdraw funds from a channel or bot's star balance ».

Layer 223

payments.starsRevenueWithdrawalUrl#1dab80b7 url:string = payments.StarsRevenueWithdrawalUrl;
---functions---
payments.getStarsRevenueWithdrawalUrl#2433dc92 flags:# ton:flags.0?true peer:InputPeer amount:flags.1?long password:InputCheckPasswordSRP = payments.StarsRevenueWithdrawalUrl;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
tonflags.0?trueIf set, withdraws channel/ad revenue in TON.
peerInputPeerChannel or bot from which to withdraw funds.
amountflags.1?longThe amount of stars or nanograms to withdraw.
passwordInputCheckPasswordSRP2FA password, see here » for more info.

Result #

payments.StarsRevenueWithdrawalUrl

Only users can use this method #

Possible errors #

CodeTypeDescription
400PASSWORD_HASH_INVALIDThe provided password hash is invalid.
400PASSWORD_MISSINGYou must enable 2FA before executing this operation.
400PASSWORD_TOO_FRESH_%dThe password was modified less than 24 hours ago, try again in %d seconds.
400SESSION_TOO_FRESH_%dThis session was created less than 24 hours ago, try again in %d seconds.

Two-factor authentication #

How to login to a user's account if they have enabled 2FA, how to change password.

Telegram Stars #

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.