Dot0.Bale
10.0.1
dotnet add package Dot0.Bale --version 10.0.1
NuGet\Install-Package Dot0.Bale -Version 10.0.1
<PackageReference Include="Dot0.Bale" Version="10.0.1" />
<PackageVersion Include="Dot0.Bale" Version="10.0.1" />
<PackageReference Include="Dot0.Bale" />
paket add Dot0.Bale --version 10.0.1
#r "nuget: Dot0.Bale, 10.0.1"
#:package Dot0.Bale@10.0.1
#addin nuget:?package=Dot0.Bale&version=10.0.1
#tool nuget:?package=Dot0.Bale&version=10.0.1
Dot0.Bale
Reusable .NET 10 Bale bot clients, shared HTTP settings and update forwarding. This package has no Axon or other Dot0 package dependency.
Registration
Inject IBaleClientFactory, register through AddBale() and create
clients with factory.Create(botToken). Import the Dot0.Bale namespace.
The configured overload AddBale(options => { ... }) captures and validates
BaleClientOptions once and returns the named HTTP client builder.
Options cover the API base URL, proxy, timeout and pooled connection lifetime.
Tokens stay on individual clients, outside shared HTTP settings. Cookies,
automatic redirects and factory request logging are disabled. Registration starts
no listeners. Hosts own callback authentication and application state.
SDK client and polling
The default endpoint is https://tapi.bale.ai, with a 90-second timeout, using Telegram.Bot.
Relay path prefixes are preserved for API calls and downloads. Supply a base URL
without a bot token; the SDK appends it. SDK test-path and rate-limit retry options
follow the Telegram client pattern; existing SDK retry defaults are retained.
Inject Dot0.Bale.Poolling.IBaleBotUpdatePoller. StartAsync accepts
an existing SDK client or token, a forwarding address and optional JSON settings,
secret header and callbacks. Use Telegram.Bot.JsonBotAPI.Options for compatible
snake-case webhook payloads. Stop with StopAsync(botToken).
The optional forwarding secret uses X-Telegram-Bot-Api-Secret-Token; callers own
receiver authentication. Start/stop calls must be sequential and state is local to
one process. Duplicate starts and missing stops fail. Failed forwards are reported
through callbacks or logging, without application retries. Stop detaches handlers
without waiting for in-flight forwarding. Hosts own webhook selection and shutdown.
Checks and publishing
Run dotnet run --project Bale.Client.Tests/Bale.Client.Tests.csproj --configuration Release
for offline HTTP and protocol checks, without live credentials.
The workflow deploy-bale.yml builds, checks, packs and publishes
Dot0.Bale as 10.0.<GitHub run number>. It runs from the deploy-bale
branch or by manual dispatch. Configure its NuGet Trusted Publishing policy and
NUGET_USER using the repository setup.
Source changes and local packages do not establish NuGet publication.
| 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
- Telegram.Bot (>= 22.10.2.1)
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 |
|---|---|---|
| 10.0.1 | 39 | 11/18/2026 |