BotForge.Telegram.Integration
0.5.0
dotnet add package BotForge.Telegram.Integration --version 0.5.0
NuGet\Install-Package BotForge.Telegram.Integration -Version 0.5.0
<PackageReference Include="BotForge.Telegram.Integration" Version="0.5.0" />
<PackageVersion Include="BotForge.Telegram.Integration" Version="0.5.0" />
<PackageReference Include="BotForge.Telegram.Integration" />
paket add BotForge.Telegram.Integration --version 0.5.0
#r "nuget: BotForge.Telegram.Integration, 0.5.0"
#:package BotForge.Telegram.Integration@0.5.0
#addin nuget:?package=BotForge.Telegram.Integration&version=0.5.0
#tool nuget:?package=BotForge.Telegram.Integration&version=0.5.0
BotForge.Telegram.Integration
An integration package with Telegram.Bot wrappers for the BotForge framework. It provides a way to map Telegram updates to BotForge updates that are ready for pipeline handling. You may need it to create your custom Telegram handling logic, but for general bots you may need BotForge.Telegram package which includes modular infrastructure and hosting features.
Installation
- .NET target: net10.0
- Install:
dotnet add package BotForge.Telegram.Integration
Usage
Register Telegram transport services and ITelegramBotClient:
using BotForge.Telegram.Integration;
using Telegram.Bot;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Configuration;
using BotForge;
var builder = Host.CreateApplicationBuilder(args);
// ITelegramBotClient
builder.Services.AddSingleton<ITelegramBotClient>(sp =>
{
var cfg = sp.GetRequiredService<IConfiguration>();
var token = cfg["ApiKeys:Telegram"];
ArgumentNullException.ThrowIfNull(token);
return new TelegramBotClient(token);
});
// Transport
builder.Services
.AddDefaultStorages()
.AddDefaultUpdateHandlers()
.ConfigureUpdatePipeline(_ => { })
.AddTelegramTransport();
var app = builder.Build();
await app.RunAsync();
Prefer BotForge.Telegram if you just need a ready-to-use setup method.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- BotForge.Core (>= 0.5.0)
- CommunityToolkit.Diagnostics (>= 8.4.0)
- Telegram.Bot (>= 22.7.5)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BotForge.Telegram.Integration:
| Package | Downloads |
|---|---|
|
BotForge.Telegram
An infrastructure package that allows you to simply create Telegram bots using BotForge framework. It includes the most common BotForge packages set to begin making bot apps. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.5.0 | 97 | 12/29/2025 |
Initial pre-release