WeChatFerry.Net 1.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package WeChatFerry.Net --version 1.0.8
                    
NuGet\Install-Package WeChatFerry.Net -Version 1.0.8
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WeChatFerry.Net" Version="1.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WeChatFerry.Net" Version="1.0.8" />
                    
Directory.Packages.props
<PackageReference Include="WeChatFerry.Net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WeChatFerry.Net --version 1.0.8
                    
#r "nuget: WeChatFerry.Net, 1.0.8"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=WeChatFerry.Net&version=1.0.8
                    
Install as a Cake Addin
#tool nuget:?package=WeChatFerry.Net&version=1.0.8
                    
Install as a Cake Tool

WeChatFerry.Net

NuGet Version NuGet Downloads GitHub Workflow Status Top Language License

A WeChatFerry Client SDK based on .NET, and you can use it to make a WeChat robot simply.

Preparation

Install specified version of WeChat. The supported WeChat version depends on the WCF version. Currently, the default version is 3.9.12.17. For other WCF versions, you can download them yourself and specify them through WCFClient.Options.

Installation

dotnet add package WeChatFerry.Net

Usage


using WeChatFerry.Net;

using var client = new WCFClient();
client.OnRecvMsg += (s, e) => Console.WriteLine($"[{e.Type}] {e.Sender}:{e.Content}");
if (!await client.Start())
{
    Console.WriteLine("Failed to start the robot.");
    return;
}
client.SendMsg(Message.CreateTxt("filehelper", "Hello, World!"));
Console.ReadLine();

Disclaimer

This project is only for learning and communication, and it is strictly prohibited to use it for commercial purposes. If you have any questions, please contact me to delete it.

Thanks

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.11 201 4/6/2025
1.0.10 157 4/4/2025
1.0.9 145 3/28/2025
1.0.8 144 3/28/2025
1.0.7 487 3/26/2025
1.0.6 470 3/26/2025
1.0.5 466 3/24/2025
1.0.4 82 3/15/2025
1.0.3 73 3/15/2025
1.0.2 184 3/13/2025
1.0.1 152 3/13/2025
1.0.0 166 3/12/2025