From 3fe0cc3b7c668d00c30063f617acb9ac13bf0290 Mon Sep 17 00:00:00 2001 From: Rikitav Date: Sat, 7 Mar 2026 23:23:30 +0400 Subject: [PATCH] errors fixes --- src/Telegrator.Hosting/Hosting/TelegramBotHostBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Telegrator.Hosting/Hosting/TelegramBotHostBuilder.cs b/src/Telegrator.Hosting/Hosting/TelegramBotHostBuilder.cs index b730048..70ae0c9 100644 --- a/src/Telegrator.Hosting/Hosting/TelegramBotHostBuilder.cs +++ b/src/Telegrator.Hosting/Hosting/TelegramBotHostBuilder.cs @@ -42,7 +42,7 @@ namespace Telegrator.Hosting _innerBuilder = hostApplicationBuilder ?? throw new ArgumentNullException(nameof(hostApplicationBuilder)); _settings = settings ?? new HostApplicationBuilderSettings(); - _innerBuilder.AddTelegrator(_settings); + _innerBuilder.AddTelegrator(); _innerBuilder.Logging.ClearProviders(); } @@ -57,7 +57,7 @@ namespace Telegrator.Hosting _innerBuilder = hostApplicationBuilder ?? throw new ArgumentNullException(nameof(hostApplicationBuilder)); _settings = settings ?? new HostApplicationBuilderSettings(); - _innerBuilder.AddTelegrator(_settings, null, handlers); + _innerBuilder.AddTelegrator(null, handlers); _innerBuilder.Logging.ClearProviders(); }