channels.ToggleUsername

class pyrogram.raw.functions.channels.ToggleUsername

Activate or deactivate a purchased fragment.com username associated to a supergroup or channel we own.

Details:
  • Layer: 187

  • ID: 50F24105

Parameters:
  • channel (InputChannel) – Supergroup or channel

  • username (str) – Username

  • active (bool) – Whether to activate or deactivate the username

Returns:

bool