Dot0.Bale 10.0.1

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

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 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. 
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
10.0.1 39 11/18/2026