BotForge.Hosting
0.5.0
dotnet add package BotForge.Hosting --version 0.5.0
NuGet\Install-Package BotForge.Hosting -Version 0.5.0
<PackageReference Include="BotForge.Hosting" Version="0.5.0" />
<PackageVersion Include="BotForge.Hosting" Version="0.5.0" />
<PackageReference Include="BotForge.Hosting" />
paket add BotForge.Hosting --version 0.5.0
#r "nuget: BotForge.Hosting, 0.5.0"
#:package BotForge.Hosting@0.5.0
#addin nuget:?package=BotForge.Hosting&version=0.5.0
#tool nuget:?package=BotForge.Hosting&version=0.5.0
BotForge.Hosting
Package that adds extensions for setting up a hosted application with BotForge framework. It contains some middlewares for debugging and provides the simplest way to create a new bot app.
Installation
- .NET target: net10.0
- Install:
dotnet add package BotForge.Hosting
Quick start
using BotForge.Hosting;
using BotForge;
var builder = BotApp.CreateBuilder(args);
// Core (configure if needed)
builder.Services
.AddDefaultStorages()
.AddDefaultUpdateHandlers()
.ConfigureUpdatePipeline(p => { /* pipeline config */ });
// Optional helpers
builder
.SkipModuleSelection() // Use when your app has a single module
.UseWelcomeMessage("Welcome"); // Simple welcome when roles are not configured
var app = builder.Build();
await app.RunAsync();
Highlights
BotApp.CreateBuilder(...)for convenient host creation- IBotBuilder extensions for common scenarios (
SkipModuleSelection,UseWelcomeMessage) - Works with Modules, Persistence and integrations (Telegram/Discord)
| 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)
- BotForge.Modules (>= 0.5.0)
- Microsoft.Extensions.Hosting (>= 10.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on BotForge.Hosting:
| Package | Downloads |
|---|---|
|
BotForge.Persistence
Package that adds database persistence for bots created with BotForge framework. It contains a basic DbContext for storing user states and identification info. |
|
|
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 | 101 | 12/29/2025 |
Initial pre-release