payments.GetStarsRevenueWithdrawalUrl
- class pyrogram.raw.functions.payments.GetStarsRevenueWithdrawalUrl
Withdraw funds from a channel or bot’s star balance ».
- Details:
Layer:
223ID:
2433DC92
- Parameters:
peer (
InputPeer) – Channel or bot from which to withdraw funds.password (
InputCheckPasswordSRP) – 2FA password, see here » for more info.ton (
bool, optional) – If set, withdraws channel/ad revenue in TON.amount (
int64-bit, optional) – The amount of stars or nanotons to withdraw.
- Returns:
TL Schema
payments.getStarsRevenueWithdrawalUrl#2433dc92
flags:#
ton:flags.0?true
peer:InputPeer
amount:flags.1?long
password:InputCheckPasswordSRP
= payments.StarsRevenueWithdrawalUrl
Parameter Tree
GetStarsRevenueWithdrawalUrl
├── ton →
true (optional)├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long├── amount →
long (optional)└── password →
InputCheckPasswordSRP├── srp_id →
long├── A →
bytes└── M1 →
bytesExample
await app.invoke(
GetStarsRevenueWithdrawalUrl(
ton=None,
peer=await app.resolve_peer(chat_id),
amount=0,
password=InputCheckPasswordEmpty(),
)
)