Bitzsoft.Integrations.TeamWork.ChatBots 1.0.4

dotnet add package Bitzsoft.Integrations.TeamWork.ChatBots --version 1.0.4
                    
NuGet\Install-Package Bitzsoft.Integrations.TeamWork.ChatBots -Version 1.0.4
                    
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="Bitzsoft.Integrations.TeamWork.ChatBots" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.TeamWork.ChatBots" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.TeamWork.ChatBots" />
                    
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 Bitzsoft.Integrations.TeamWork.ChatBots --version 1.0.4
                    
#r "nuget: Bitzsoft.Integrations.TeamWork.ChatBots, 1.0.4"
                    
#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.
#:package Bitzsoft.Integrations.TeamWork.ChatBots@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bitzsoft.Integrations.TeamWork.ChatBots&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.TeamWork.ChatBots&version=1.0.4
                    
Install as a Cake Tool

Bitzsoft.Integrations.TeamWork.ChatBots

企业群机器人(钉钉 / 企业微信 / 飞书)轻量级 Outgoing Webhook 统一客户端组件。

特性亮点

  • 三合一全面支持:统一抽象支持钉钉(DingTalk)、企业微信(WeCom)、飞书(Feishu / Lark)群机器人;
  • 多消息形态:统一封装文本(Text)、Markdown 富文本与交互式卡片(ActionCard / News / Interactive Card);
  • 全自动鉴权加签:
    • 钉钉:HMAC-SHA256 毫秒级时间戳签名计算与 URL 转义;
    • 飞书:HMAC-SHA256 秒级时间戳签名计算与报文挂载;
    • 企微:Webhook Key 鉴权与参数组装;
  • 高弹性韧性:集成 Polly 策略管道,自动拦截 429、503 及网络抖动重试,支持故障熔断保护;
  • 动态端点覆盖:既支持容器静态配置默认机器人,也支持在运行时动态传入目标 Webhook URL 与 Secret 进行多群动态分发与广播。

快速接入

// Program.cs 注册服务
builder.Services.AddBitzsoftChatBots(options =>
{
    options.DingTalk.WebhookUrl = "https://oapi.dingtalk.com/robot/send?access_token=xxx";
    options.DingTalk.Secret = "SECxxx";
});
// 消费端使用
public class NotifyService
{
    private readonly IChatBotDispatcher _dispatcher;

    public NotifyService(IChatBotDispatcher dispatcher)
    {
        _dispatcher = dispatcher;
    }

    public async Task SendDailyAsync(string markdown)
    {
        var endpoint = new ChatBotEndpointConfig("https://oapi.dingtalk.com/robot/send?access_token=xxx", "SECxxx");
        await _dispatcher.SendMarkdownAsync(ChatBotProviderType.DingTalk, endpoint, "晨夕会简报", markdown);
    }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos 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.4 46 9/23/2026
1.0.3 40 9/22/2026