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(); }