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: 194

  • ID: 50F24105

Parameters:
  • channel (InputChannel) – Supergroup or channel

  • username (str) – Username

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

Returns:

bool