This commit is contained in:
2026-03-07 19:54:48 +04:00
parent 16b6215a31
commit 6c3253107a
7 changed files with 8797 additions and 4 deletions
@@ -60,7 +60,7 @@ namespace Telegrator
options.GlobalCancellationToken = globallCancell.Token;
services.AddSingleton(Options.Create(options));
services.AddKeyedSingleton("cancell", globallCancell);
1
if (handlers != null)
{
if (handlers is IHandlersManager manager)
@@ -33,7 +33,6 @@ namespace Telegrator.Hosting
/// Initializes a new instance of the <see cref="TelegramBotHost"/> class.
/// </summary>
/// <param name="hostApplicationBuilder">The proxied instance of host builder.</param>
/// <param name="handlers"></param>
public TelegramBotHost(HostApplicationBuilder hostApplicationBuilder)
{
// Registering this host in services for easy access
@@ -11,7 +11,6 @@ namespace Telegrator.Polling
/// <summary>
/// Service for receiving updates for Hosted telegram bots
/// </summary>
/// <param name="botHost"></param>
/// <param name="botClient"></param>
/// <param name="updateRouter"></param>
/// <param name="options"></param>
+1 -1
View File
@@ -111,7 +111,7 @@ public static class HostBuilderExtensions
/// <summary>
/// Contains extensions for <see cref="IServiceCollection"/>
/// Provides method to configure <see cref="ITelegramBotHost"/>
/// Provides method to configure Telegram Bot Host
/// </summary>
public static class ServicesCollectionExtensions
{