toggle_no_paid_messages_exception()

async Client.toggle_no_paid_messages_exception()

Allow a user to send messages without paying if paid messages are enabled.

Usable by Users Bots
Parameters:
  • user_id (int | str | InputUser) – The user to exempt or unexempt.

  • refund_charged (bool, optional) – Whether to refund the amounts already paid.

  • require_payment (bool, optional) – Whether to require payment.

  • parent_peer (int | str | InputPeer, optional) – Channel or monoforum peer.

Returns:

bool – On success, True is returned.