Telegrator.Hosting
Abstract base class for configuring options from configuration sources.
Provides a proxy pattern for binding configuration to strongly-typed options classes.
The type of options to configure.
Configures the options using the default configuration section.
The service collection to configure.
The configuration source.
Configures the options using a named configuration section.
The service collection to configure.
The name of the configuration section.
The configuration source.
Configures the options using a named configuration section with custom binder options.
The service collection to configure.
The name of the configuration section.
The configuration source.
Optional action to configure the binder options.
Creates the actual options instance from the configuration.
The configured options instance.
Collection class for managing handler descriptors organized by update type for host apps.
Provides functionality for collecting, adding, scanning, and organizing handlers.
List of tasks that should be completed right before building the bot
Interface for pre-building routines that can be executed during host construction.
Allows for custom initialization and configuration steps before the bot host is built.
Executes the pre-building routine on the specified host builder.
The host builder to configure.
Implementation of that provides bot information.
Contains metadata about the Telegram bot including user details and service provider for wider filterring abilities
Implementation of that provides bot information.
Contains metadata about the Telegram bot including user details and service provider for wider filterring abilities
Provides access to services of this Hosted telegram bot
Provides access to configuration of this Hosted telegram bot
Interface for Telegram bot hosts.
Combines host application capabilities with reactive Telegram bot functionality.
Interface for building Telegram bot hosts with dependency injection support.
Combines host application building capabilities with handler collection functionality.
Gets the set of key/value configuration properties.
Gets a collection of logging providers for the application to compose. This is useful for adding new logging providers.
Gets a collection of services for the application to compose. This is useful for adding user provided or framework provided services.
Represents a hosted telegram bot
This application's logger
Initializes a new instance of the class.
The proxied instance of host builder.
Creates new with default configuration, services and long-polling update receiving scheme
Creates new with default services and long-polling update receiving scheme
Creates new EMPTY WITHOUT any services or update receiving schemes
Creates new EMPTY WITHOUT any services or update receiving schemes
Disposes the host.
Represents a hosted telegram bots and services builder that helps manage configuration, logging, lifetime, and more.
Initializes a new instance of the class.
Initializes a new instance of the class.
Builds the host.
Settings os hosted Telegram bot
Settings os hosted Telegram bot
Disables automatic configuration for all of required instances
Adapter for Microsoft.Extensions.Logging to work with Telegrator logging system.
This allows seamless integration with ASP.NET Core logging infrastructure.
Initializes a new instance of MicrosoftLoggingAdapter.
The Microsoft.Extensions.Logging logger instance.
Service for receiving updates for Hosted telegram bots
Service for receiving updates for Hosted telegram bots
of this router
Default exception handler of this router
Pre host building task
List of tasks that should be completed right before building the bot
Internal proxy class for configuring Telegram bot client options from configuration.
Extends ConfigureOptionsProxy to provide specific configuration for Telegram bot client options.
Gets or sets the bot token.
Gets or sets the base URL for the bot API.
Gets or sets whether to use the test environment.
Gets or sets the retry threshold in seconds.
Gets or sets the number of retry attempts.
Creates a TelegramBotClientOptions instance from the proxy configuration.
The configured TelegramBotClientOptions instance.
Provides extension methods for to configure Telegrator.
The key used to store the in the builder properties.
Replaces TelegramBotWebHostBuilder. Configures DI, options, and handlers.
Gets the from the builder properties.
Contains extensions for
Provides method to configure
Registers a configuration instance that strongly-typed will bind against using .
Registers default services
Registers service with to receive updates using long polling
factory method
Provides useful methods to adjust
Replaces the initialization logic from TelegramBotWebHost constructor.
Initializes the bot and logs handlers on application startup.
Configures bots available commands depending on what handlers was registered
Adds a Microsoft.Extensions.Logging adapter to Alligator using a logger factory.
Provides extension methods for reflection and type inspection.
Checks if a type implements the interface.
The type to check.
True if the type implements IPreBuildingRoutine; otherwise, false.
Provides extension methods for logging Telegrator-related information.
Logs the registered handlers to the specified logger.
The logger to write to.
The collection of handlers to log.