Annium.Integrations.Social.Telegram 1.1.19

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

Annium.Integrations

Thin wrappers around external services, packaged for use with the Annium framework: AI providers and orchestration under ai/, social-platform bots under social/.

These are integration layers, not framework code — dependency injection, logging, HTTP, serialization and testing all come from the Annium.* packages.

Packages

Package What it gives you
Annium.Integrations.AI.OpenAI Keyed registration of an OpenAI client and the chat / audio clients derived from it, with configuration resolved from DI at resolution time
Annium.Integrations.AI.SemanticKernel A builder for Microsoft Semantic Kernel: plugin discovery through Annium's type manager, and MCP tools loaded from an HTTP server
Annium.Integrations.AI.SemanticKernel.AspNetCore ASP.NET Core hosting for the above. Currently empty — published as a placeholder while the hosting surface is designed
Annium.Integrations.Social.Telegram Telegram Bot API integration: a bot host, an API client, and polling or webhook receivers

Quick start

Register an OpenAI client under a key and resolve the capability clients from it:

container.AddOpenAI("assistant", _ => new OpenAIConfig(apiKey, "gpt-5", null));

var chat = provider.ResolveKeyed<ChatClient>("assistant");

Register a Telegram bot with a polling receiver and a message handler:

container.AddTelegramBot(
    "demo",
    sp => sp.Resolve<Dictionary<string, TelegramBotConfiguration>>()["demo"],
    opts =>
    {
        opts.UsePollingReceiver();
        opts.UseHandler<EchoTelegramMessageHandler>();
    }
);

Every integration is registered under a key, so several clients or bots coexist in one container, and configuration is supplied as a delegate resolved from DI rather than a bound instance — configuration loaded after registration is still picked up.

Provider credentials never belong in a committed file. The Telegram demo reads its bot token from TELEGRAM_BOT_TOKEN; OpenAIConfig.ToString() renders the API key redacted so a config object cannot leak it into a log line.

Development

just              # list every recipe
just setup        # restore dotnet tools
just build        # Release build
just test         # run the test suite
just docs-lint    # XML documentation gate
just format       # csharpier + xs format

Targets net10.0. Tests run on Microsoft.Testing.Platform (xunit.v3). Warnings are errors, XML docs on the public surface are enforced by annium.doclint, and CI runs the same just recipes you run locally.

License

MIT — see LICENSE.

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
1.1.19 0 8/24/2026
1.1.18 0 8/24/2026
1.1.17 0 8/24/2026
1.1.16 7 8/24/2026
1.1.15 20 8/24/2026