telegram api method · layer 229 · #2433dc92
payments.getStarsRevenueWithdrawalUrl
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
ton | true | If set, withdraws channel/ad revenue in TON. |
peer | InputPeer | Channel or bot from which to withdraw funds. |
amount | long | The amount of stars or nanotons to withdraw. |
password | InputCheckPasswordSRP | 2FA password, see here » for more info. |
returns
payments.StarsRevenueWithdrawalUrl
errors (6)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 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. |
| 400 | SESSION_TOO_FRESH_%d | This session was created less than 24 hours ago, try again in %d seconds. |
| 401 | AUTH_KEY_UNREGISTERED | The 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×
| id | layers |
|---|---|
| #13bbe8b3 | 182–205 |
| #2433dc92 | 206–229 |