telegram api method · layer 229 · #2433dc92

payments.getStarsRevenueWithdrawalUrl

usable by users

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

definition

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 nanotons to withdraw.
passwordInputCheckPasswordSRP2FA password, see here » for more info.

returns

payments.StarsRevenueWithdrawalUrl

errors (6)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
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.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 182–229 · constructor id changed 1×

idlayers
#13bbe8b3182–205
#2433dc92206–229