Unicorb.Max.Bridge 0.9.17-alpha

This is a prerelease version of Unicorb.Max.Bridge.
dotnet add package Unicorb.Max.Bridge --version 0.9.17-alpha
                    
NuGet\Install-Package Unicorb.Max.Bridge -Version 0.9.17-alpha
                    
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="Unicorb.Max.Bridge" Version="0.9.17-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Unicorb.Max.Bridge" Version="0.9.17-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Unicorb.Max.Bridge" />
                    
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 Unicorb.Max.Bridge --version 0.9.17-alpha
                    
#r "nuget: Unicorb.Max.Bridge, 0.9.17-alpha"
                    
#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 Unicorb.Max.Bridge@0.9.17-alpha
                    
#: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=Unicorb.Max.Bridge&version=0.9.17-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Unicorb.Max.Bridge&version=0.9.17-alpha&prerelease
                    
Install as a Cake Tool

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.Configuration depends on pre-release MaxMessenger.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 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. 
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
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