Dot0.SoroushPlus
10.0.1
dotnet add package Dot0.SoroushPlus --version 10.0.1
NuGet\Install-Package Dot0.SoroushPlus -Version 10.0.1
<PackageReference Include="Dot0.SoroushPlus" Version="10.0.1" />
<PackageVersion Include="Dot0.SoroushPlus" Version="10.0.1" />
<PackageReference Include="Dot0.SoroushPlus" />
paket add Dot0.SoroushPlus --version 10.0.1
#r "nuget: Dot0.SoroushPlus, 10.0.1"
#:package Dot0.SoroushPlus@10.0.1
#addin nuget:?package=Dot0.SoroushPlus&version=10.0.1
#tool nuget:?package=Dot0.SoroushPlus&version=10.0.1
Dot0.SoroushPlus
Reusable .NET 10 SoroushPlus bot clients, shared HTTP settings and update forwarding. This package has no Axon or other Dot0 package dependency.
Registration
Inject ISoroushPlusClientFactory, register through AddSoroushPlus() and create
clients with factory.Create(botToken). Import the Dot0.SoroushPlus namespace.
The configured overload AddSoroushPlus(options => { ... }) captures and validates
SoroushPlusClientOptions 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://api.splus.ir, 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.SoroushPlus.Poolling.ISoroushPlusBotUpdatePoller. 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 SoroushPlus.Client.Tests/SoroushPlus.Client.Tests.csproj --configuration Release
for offline HTTP and protocol checks, without live credentials.
The workflow deploy-soroush-plus.yml builds, checks, packs and publishes
Dot0.SoroushPlus as 10.0.<GitHub run number>. It runs from the deploy-soroush-plus
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 | 41 | 11/18/2026 |