Overview
TheTelegramBotHostBuilder class provides a builder pattern for configuring and creating TelegramBotHost instances. It wraps the .NET HostApplicationBuilder and adds Telegrator-specific functionality.
Namespace: Telegrator.Hosting
Implements: ITelegramBotHostBuilder, ICollectingProvider
Properties
Handlers
Services
Configuration
Logging
Environment
Methods
Build()
TelegramBotHost instance.
Returns: A fully configured TelegramBotHost ready to start.
Example:
TelegramBotHostBuilderSettings
Configuration options for the host builder. Namespace:Telegrator.Hosting
Inheritance: Extends TelegratorOptions
Properties
DisableAutoConfigure
IOptions<T> instances. When disabled, you must manually configure all required options.
Default: false