Telegrator.Hosting.Web
Represents a web hosted telegram bot
Allows consumers to be notified of application lifetime events.
This application's logger
Initializes a new instance of the class.
The proxied instance of host builder.
Creates new with default services and webhook update receiving scheme
Creates new SLIM with default services and webhook update receiving scheme
Creates new EMPTY WITHOUT any services or update receiving schemes
Disposes the host.
Disposes the host.
Represents a web 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.
Initializes a new instance of the class.
Initializes a new instance of the class.
Builds the host.
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
Maps bot webhook to application builder
Contains extensions for
Provides method to configure Telegram Bot WebHost
The key used to store the in the builder properties.
Replaces TelegramBotWebHostBuilder. Configures DI, options, and handlers.
Replaces TelegramBotWebHostBuilder. Configures DI, options, and handlers.
Replaces TelegramBotWebHostBuilder. Configures DI, options, and handlers.
Replaces the initialization logic from TelegramBotWebHost constructor.
Initializes the bot and logs handlers on application startup.
Registers service with to receive updates using webhook
Gets the from the builder properties.