Unicorb.Max.Bridge
0.9.17-alpha
dotnet add package Unicorb.Max.Bridge --version 0.9.17-alpha
NuGet\Install-Package Unicorb.Max.Bridge -Version 0.9.17-alpha
<PackageReference Include="Unicorb.Max.Bridge" Version="0.9.17-alpha" />
<PackageVersion Include="Unicorb.Max.Bridge" Version="0.9.17-alpha" />
<PackageReference Include="Unicorb.Max.Bridge" />
paket add Unicorb.Max.Bridge --version 0.9.17-alpha
#r "nuget: Unicorb.Max.Bridge, 0.9.17-alpha"
#:package Unicorb.Max.Bridge@0.9.17-alpha
#addin nuget:?package=Unicorb.Max.Bridge&version=0.9.17-alpha&prerelease
#tool nuget:?package=Unicorb.Max.Bridge&version=0.9.17-alpha&prerelease
Unicorb.Max.Bridge
Bridge between Max and Unicorb. It adds extractors, update pipeline, state machine and an adapter for Max Bot API.
Dependencies: Unicorb, Unicorb.Max.Configuration
TFM: net9.0, net10.0
Unicorb.Max.Configurationdepends on pre-releaseMaxMessenger.Bot.
Install
dotnet add package Unicorb.Max.Bridge --prerelease
Quick Start
builder.Services.AddMaxConfiguration(maxOptions);
builder.Services.AddUnicorb(o => o.Registries(r =>
{
r.ScanHandlersFrom<MyMarker>();
r.ScanStatesFrom<MyMarker>();
r.ScanCommandsFrom<MyMarker>();
r.ScanExtractorsFrom<MaxAssemblyMarker>();
}));
builder.Services.AddMaxBridge();
var app = builder.Build();
app.Services.ValidateUnicorb<Update>();
app.UseMaxWebhook();
For UseMaxWebhook(), add Unicorb.Max.Configuration.AspNetCore.
AddMaxBridge() publishes commands from ICommandRegistry by default.
Extractors
Built-in extractors cover text, callback, photo and command invocation.
Capabilities
| Core | Inbound (extractors) | Outbound (mapper/adapter) |
|---|---|---|
| Text | yes | yes |
| Callback | yes | inline keyboard |
| Photo | yes | photo/video/audio/file attachments |
| Command | yes | — |
| Inline keyboard | — | callback and URL buttons |
| Reply keyboard | — | no (ReplyKeyboard not supported) |
| Video / voice / audio / document input | no | attachments classified by MIME/filename |
To replace an extractor, add your implementation and call ScanExtractorsFrom<MyMarker>() after ScanExtractorsFrom<MaxAssemblyMarker>().
Service Overrides
builder.Services.AddMaxBridge(o =>
{
o.UseStateMachine<MyMaxStateMachine>();
o.UseMessageMapper<MyMaxMessageMapper>();
o.ConfigureBotCommands = false;
});
Call AddMaxConfiguration() first: the bridge does not register Max client.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net10.0
- Unicorb (>= 0.9.17-alpha)
- Unicorb.Max.Configuration (>= 0.9.17-alpha)
-
net9.0
- Unicorb (>= 0.9.17-alpha)
- Unicorb.Max.Configuration (>= 0.9.17-alpha)
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 |
|---|---|---|
| 0.9.17-alpha | 28 | 7/30/2026 |
| 0.9.16-alpha | 32 | 7/30/2026 |
| 0.9.15-alpha | 29 | 7/30/2026 |
| 0.9.14-alpha | 40 | 7/29/2026 |
| 0.9.13-alpha | 55 | 7/21/2026 |
| 0.9.12-alpha | 48 | 7/20/2026 |
| 0.9.11-alpha | 44 | 7/15/2026 |
| 0.9.10-alpha | 50 | 7/13/2026 |
| 0.9.9-alpha | 52 | 7/13/2026 |
| 0.9.8-alpha | 48 | 7/12/2026 |
| 0.9.7-alpha | 54 | 7/10/2026 |
| 0.9.6-alpha | 60 | 7/10/2026 |
| 0.9.5-alpha | 57 | 7/9/2026 |
| 0.9.4-alpha | 56 | 7/9/2026 |
| 0.9.3-alpha | 70 | 6/24/2026 |
| 0.9.2-alpha | 69 | 6/23/2026 |
| 0.9.1-alpha | 59 | 6/14/2026 |
| 0.9.0-alpha | 60 | 6/14/2026 |