account.ToggleUsername

class pyrogram.raw.functions.account.ToggleUsername

Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.

Details:
  • Layer: 194

  • ID: 58D6B376

Parameters:
  • username (str) – Username

  • active (bool) – Whether to activate or deactivate it

Returns:

bool