payments.GetStarsRevenueWithdrawalUrl#

class pyrogram.raw.functions.payments.GetStarsRevenueWithdrawalUrl#

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

Details:
  • Layer: 220

  • 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