* Fixed default's HandlersProvider instance creation

* Fixed all of the message filters faulting because of wrong execution sequence
* Removed default Host loggers
* Fixed descriptors indexing
This commit is contained in:
2025-07-28 01:40:04 +04:00
parent 1016132a65
commit 76cf6eb4a2
14 changed files with 60 additions and 33 deletions
@@ -49,6 +49,8 @@ namespace Telegrator.Hosting
_settings = settings ?? new TelegramBotHostBuilderSettings();
_handlers = new HostHandlersCollection(Services, _settings);
_innerBuilder.Logging.ClearProviders();
Services.Configure<TelegramBotOptions>(Configuration.GetSection(nameof(TelegramBotOptions)));
Services.Configure<ReceiverOptions>(Configuration.GetSection(nameof(ReceiverOptions)));
Services.Configure<TelegramBotClientOptions>(Configuration.GetSection(nameof(TelegramBotClientOptions)), new TelegramBotClientOptionsProxy());