WeChatFerry.Net
1.0.11
dotnet add package WeChatFerry.Net --version 1.0.11
NuGet\Install-Package WeChatFerry.Net -Version 1.0.11
<PackageReference Include="WeChatFerry.Net" Version="1.0.11" />
<PackageVersion Include="WeChatFerry.Net" Version="1.0.11" />
<PackageReference Include="WeChatFerry.Net" />
paket add WeChatFerry.Net --version 1.0.11
#r "nuget: WeChatFerry.Net, 1.0.11"
#addin nuget:?package=WeChatFerry.Net&version=1.0.11
#tool nuget:?package=WeChatFerry.Net&version=1.0.11
WeChatFerry.Net
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 WCFClientOptions
.
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.SendTxt("filehelper", "Hello, World!");
var selfWxid = await client.RPCGetSelfWxidAsync();
Console.WriteLine($"Self wxid: {selfWxid}");
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 | Versions 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. |
-
net6.0-windows7.0
- Google.Protobuf (>= 3.30.0)
- NanomsgNG.NET (>= 1.6.1)
-
net8.0-windows7.0
- Google.Protobuf (>= 3.30.0)
- NanomsgNG.NET (>= 1.6.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.