payments.GetStarsRevenueWithdrawalUrl

class pyrogram.raw.functions.payments.GetStarsRevenueWithdrawalUrl

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

Details:
  • Layer: 223

  • ID: 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 (int 64-bit, optional) – The amount of stars or nanotons to withdraw.

Returns:

payments.StarsRevenueWithdrawalUrl

TL Schema

payments.getStarsRevenueWithdrawalUrl#2433dc92
flags:#
ton:flags.0?true
peer:InputPeer
amount:flags.1?long
password:InputCheckPasswordSRP

= payments.StarsRevenueWithdrawalUrl

Parameter Tree

GetStarsRevenueWithdrawalUrl
├── tontrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── amountlong (optional)
└── passwordInputCheckPasswordSRP
├── srp_idlong
├── Abytes
└── M1bytes

Example

await app.invoke(
    GetStarsRevenueWithdrawalUrl(
        ton=None,
        peer=await app.resolve_peer(chat_id),
        amount=0,
        password=InputCheckPasswordEmpty(),
    )
)