Telegrator.Hosting.Web
Configuration options for Telegram bot behavior and execution settings.
Controls various aspects of bot operation including concurrency, routing, webhook receiving, and execution policies.
Gets or sets HTTPS URL to send updates to. Use an empty string to remove webhook integration
A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request, 1-256 characters.
Only characters A-Z, a-z, 0-9, _ and - are allowed.
The header is useful to ensure that the request comes from a webhook set by you.
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40.
Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.
Pass true to drop all pending updates
Service for receiving updates for Hosted telegram bots via Webhooks
Initiallizes new instance of
Allows to remap receiving webhook endpoint and map new route to webhost.
Maps bot webhook to application builder
Provides extension methods for to configure Telegrator.
Replaces TelegramBotWebHostBuilder. Configures DI, options, and handlers.
Replaces TelegramBotWebHostBuilder. Configures DI, options, and handlers.
Replaces TelegramBotWebHostBuilder. Configures DI, options, and handlers.
Contains extensions for
Provides method to configure Telegram Bot WebHost
Searchs for hosted service inside hosts services
Provides useful methods to adjust Telegram bot Host
Replaces the initialization logic from TelegramBotWebHost constructor.
Initializes the bot and logs handlers on application startup.
Allows to remap receiving webhook endpoint and map new route to webhost.
Registers service with to receive updates using webhook