Unicorb.Telegram.Bridge
0.9.17-alpha
dotnet add package Unicorb.Telegram.Bridge --version 0.9.17-alpha
NuGet\Install-Package Unicorb.Telegram.Bridge -Version 0.9.17-alpha
<PackageReference Include="Unicorb.Telegram.Bridge" Version="0.9.17-alpha" />
<PackageVersion Include="Unicorb.Telegram.Bridge" Version="0.9.17-alpha" />
<PackageReference Include="Unicorb.Telegram.Bridge" />
paket add Unicorb.Telegram.Bridge --version 0.9.17-alpha
#r "nuget: Unicorb.Telegram.Bridge, 0.9.17-alpha"
#:package Unicorb.Telegram.Bridge@0.9.17-alpha
#addin nuget:?package=Unicorb.Telegram.Bridge&version=0.9.17-alpha&prerelease
#tool nuget:?package=Unicorb.Telegram.Bridge&version=0.9.17-alpha&prerelease
Unicorb.Telegram.Bridge
Bridge between Telegram and Unicorb. It adds extractors, update pipeline, state machine and an adapter for Telegram Bot API.
Dependencies: Unicorb, Unicorb.Telegram.Configuration
TFM: net9.0, net10.0
Install
dotnet add package Unicorb.Telegram.Bridge
Quick Start
builder.Services.AddTelegramConfiguration(telegramOptions);
builder.Services.AddUnicorb(o => o.Registries(r =>
{
r.ScanHandlersFrom<MyMarker>();
r.ScanStatesFrom<MyMarker>();
r.ScanCommandsFrom<MyMarker>();
r.ScanExtractorsFrom<TelegramAssemblyMarker>();
}));
builder.Services.AddTelegramBridge();
var app = builder.Build();
app.Services.ValidateUnicorb<Update>();
app.UseTelegramWebhook();
For UseTelegramWebhook(), add Unicorb.Telegram.Configuration.AspNetCore.
AddTelegramBridge() 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 + callback ACK |
| Photo | yes | photo/document attachments |
| Command | yes | — |
| Reply keyboard | — | yes (ReplyKeyboard → ReplyKeyboardMarkup) |
| Inline keyboard | — | callback, URL, Web App buttons |
| Video / voice / audio / document input | no | attachments sent as photo or document |
To replace an extractor, add your implementation and call ScanExtractorsFrom<MyMarker>() after ScanExtractorsFrom<TelegramAssemblyMarker>().
Service Overrides
builder.Services.AddTelegramBridge(o =>
{
o.UseStateMachine<MyTelegramStateMachine>();
o.UseMessageMapper<MyTelegramMessageMapper>();
o.ConfigureBotCommands = false;
});
Call AddTelegramConfiguration() first: the bridge does not register ITelegramBotClient.
| 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.Telegram.Configuration (>= 0.9.17-alpha)
-
net9.0
- Unicorb (>= 0.9.17-alpha)
- Unicorb.Telegram.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 | 31 | 7/30/2026 |
| 0.9.15-alpha | 33 | 7/30/2026 |
| 0.9.14-alpha | 35 | 7/29/2026 |
| 0.9.13-alpha | 47 | 7/21/2026 |
| 0.9.12-alpha | 50 | 7/20/2026 |
| 0.9.11-alpha | 47 | 7/15/2026 |
| 0.9.10-alpha | 54 | 7/13/2026 |
| 0.9.9-alpha | 48 | 7/13/2026 |
| 0.9.8-alpha | 53 | 7/12/2026 |
| 0.9.7-alpha | 59 | 7/10/2026 |
| 0.9.6-alpha | 58 | 7/10/2026 |
| 0.9.5-alpha | 53 | 7/9/2026 |
| 0.9.4-alpha | 52 | 7/9/2026 |
| 0.9.3-alpha | 62 | 6/24/2026 |
| 0.9.2-alpha | 72 | 6/23/2026 |
| 0.9.1-alpha | 63 | 6/14/2026 |
| 0.9.0-alpha | 65 | 6/14/2026 |