• Toggle a collectible (Fragment) username

    Note: non-collectible usernames must still be changed using setUsername/setChatUsername

    Parameters

    • client: ITelegramClient
    • params: { active: boolean; peerId: InputPeerLike; username: string }
      • active: boolean

        Whether to enable or disable the username

      • peerId: InputPeerLike

        Peer ID whose username to toggle

      • username: string

        Username to toggle

    Returns Promise<void>