diff --git a/docs/Telegrator.Hosting.Web.xml b/docs/Telegrator.Hosting.Web.xml
index b1cdf24..a564573 100644
--- a/docs/Telegrator.Hosting.Web.xml
+++ b/docs/Telegrator.Hosting.Web.xml
@@ -4,41 +4,12 @@
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 and queuing them to router
-
+
Initiallizes new instance of
@@ -95,7 +66,7 @@
Provides method to configure Telegram Bot WebHost
-
+
Adds WebhookerOptions to services
@@ -138,5 +109,34 @@
+
+
+ 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
+
+
diff --git a/docs/Telegrator.Hosting.WideBot.xml b/docs/Telegrator.Hosting.WideBot.xml
index fa5e33f..7af72c1 100644
--- a/docs/Telegrator.Hosting.WideBot.xml
+++ b/docs/Telegrator.Hosting.WideBot.xml
@@ -13,7 +13,7 @@
-
+
Service for receiving updates for Hosted wide telegram bots and queuing them to router
@@ -119,17 +119,17 @@
Provides extension methods for to configure Telegrator.
-
+
Replaces TelegramBotHostBuilder. Configures DI, options, and handlers.
-
+
Replaces TelegramBotHostBuilder. Configures DI, options, and handlers.
-
+
Replaces TelegramBotHostBuilder. Configures DI, options, and handlers.
@@ -148,6 +148,14 @@
+
+
+ Adds WTelegramBotClientOptions to services
+
+
+
+
+
Adds WTelegramBotClient
diff --git a/docs/Telegrator.Localized.xml b/docs/Telegrator.Localized.xml
new file mode 100644
index 0000000..dda069d
--- /dev/null
+++ b/docs/Telegrator.Localized.xml
@@ -0,0 +1,8 @@
+
+
+
+ Telegrator.Localized
+
+
+
+
diff --git a/src/Telegartor.RedisStateStorage/Telegartor.RedisStateStorage.csproj b/src/Telegartor.RedisStateStorage/Telegartor.RedisStateStorage.csproj
index bff2542..72bf7f6 100644
--- a/src/Telegartor.RedisStateStorage/Telegartor.RedisStateStorage.csproj
+++ b/src/Telegartor.RedisStateStorage/Telegartor.RedisStateStorage.csproj
@@ -13,6 +13,9 @@
True
True
True
+ True
+ snupkg
+ False
Telegrator.RedisStateStorage
1.16.6
diff --git a/src/Telegrator.Hosting.Web/Mediation/HostedUpdateWebhooker.cs b/src/Telegrator.Hosting.Web/Mediation/HostedUpdateWebhooker.cs
index 1f0f63d..c9beb5a 100644
--- a/src/Telegrator.Hosting.Web/Mediation/HostedUpdateWebhooker.cs
+++ b/src/Telegrator.Hosting.Web/Mediation/HostedUpdateWebhooker.cs
@@ -8,7 +8,6 @@ using System.Text.Json;
using Telegram.Bot;
using Telegram.Bot.Types;
using Telegrator.Core;
-using Telegrator.Hosting.Web;
namespace Telegrator.Mediation;
diff --git a/src/Telegrator.Hosting.Web/Telegrator.Hosting.Web.csproj b/src/Telegrator.Hosting.Web/Telegrator.Hosting.Web.csproj
index cfdf037..40f793c 100644
--- a/src/Telegrator.Hosting.Web/Telegrator.Hosting.Web.csproj
+++ b/src/Telegrator.Hosting.Web/Telegrator.Hosting.Web.csproj
@@ -13,9 +13,12 @@
True
True
True
+ True
+ snupkg
+ False
Telegrator.Hosting.Web
- 1.17.0
+ 1.17.1
Rikitav Tim4ik
Rikitav Tim4ik
https://github.com/Rikitav/Telegrator
diff --git a/src/Telegrator.Hosting.Web/TypesExtensions.cs b/src/Telegrator.Hosting.Web/TypesExtensions.cs
index 963a09d..a8e40ec 100644
--- a/src/Telegrator.Hosting.Web/TypesExtensions.cs
+++ b/src/Telegrator.Hosting.Web/TypesExtensions.cs
@@ -9,7 +9,6 @@ using System.Diagnostics.CodeAnalysis;
using Telegram.Bot;
using Telegrator.Core;
using Telegrator.Hosting;
-using Telegrator.Hosting.Web;
using Telegrator.Mediation;
using Telegrator.Providers;
diff --git a/src/Telegrator.Hosting.Web/Hosting.Web/WebhookerOptions.cs b/src/Telegrator.Hosting.Web/WebhookerOptions.cs
similarity index 97%
rename from src/Telegrator.Hosting.Web/Hosting.Web/WebhookerOptions.cs
rename to src/Telegrator.Hosting.Web/WebhookerOptions.cs
index c320575..1cf9c40 100644
--- a/src/Telegrator.Hosting.Web/Hosting.Web/WebhookerOptions.cs
+++ b/src/Telegrator.Hosting.Web/WebhookerOptions.cs
@@ -1,6 +1,6 @@
using System.Diagnostics.CodeAnalysis;
-namespace Telegrator.Hosting.Web;
+namespace Telegrator;
///
/// Configuration options for Telegram bot behavior and execution settings.
diff --git a/src/Telegrator.Hosting.WideBot/Mediation/HostedWideBotUpdateReceiver.cs b/src/Telegrator.Hosting.WideBot/Mediation/HostedWideBotUpdateReceiver.cs
index c885dd6..041f32f 100644
--- a/src/Telegrator.Hosting.WideBot/Mediation/HostedWideBotUpdateReceiver.cs
+++ b/src/Telegrator.Hosting.WideBot/Mediation/HostedWideBotUpdateReceiver.cs
@@ -14,7 +14,7 @@ namespace Telegrator.Mediation;
///
///
///
-public class HostedWideBotUpdateReceiver(ILogger logger, ITelegramBotClient botClient, IUpdateRouter updateRouter, IOptions? options) : BackgroundService
+public class HostedWideBotUpdateReceiver(ILogger logger, ITelegramBotClient botClient, IUpdateRouter updateRouter, IOptions? options) : BackgroundService
{
///
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
diff --git a/src/Telegrator.Hosting.WideBot/Telegrator.Hosting.WideBot.csproj b/src/Telegrator.Hosting.WideBot/Telegrator.Hosting.WideBot.csproj
index 2e2f70d..52e6287 100644
--- a/src/Telegrator.Hosting.WideBot/Telegrator.Hosting.WideBot.csproj
+++ b/src/Telegrator.Hosting.WideBot/Telegrator.Hosting.WideBot.csproj
@@ -13,9 +13,12 @@
True
True
True
+ True
+ snupkg
+ False
Telegrator.Hosting.WideBot
- 1.17.0
+ 1.17.1
Rikitav Tim4ik
Rikitav Tim4ik
https://github.com/Rikitav/Telegrator
diff --git a/src/Telegrator.Hosting.WideBot/TypesExtensions.cs b/src/Telegrator.Hosting.WideBot/TypesExtensions.cs
index da4b685..d2a86aa 100644
--- a/src/Telegrator.Hosting.WideBot/TypesExtensions.cs
+++ b/src/Telegrator.Hosting.WideBot/TypesExtensions.cs
@@ -15,6 +15,7 @@ using Telegrator.Providers;
using WUpdate = WTelegram.Types.Update;
using TLUpdate = TL.Update;
+using System.Data.Common;
namespace Telegrator;
@@ -92,9 +93,9 @@ public static class WideHostBuilderExtensions
///
/// Replaces TelegramBotHostBuilder. Configures DI, options, and handlers.
///
- public static IHostApplicationBuilder AddWideTelegrator(this IHostApplicationBuilder builder, TelegratorOptions? options = null, IHandlersCollection? handlers = null, Action? action = null)
+ public static IHostApplicationBuilder AddWideTelegrator(this IHostApplicationBuilder builder, Func dbConnectionFactory, Action? action = null, TelegratorOptions? options = null, IHandlersCollection? handlers = null)
{
- AddWideTelegratorInternal(builder.Services, builder.Configuration, builder.Properties, ref handlers, options);
+ AddWideTelegratorInternal(builder.Services, builder.Configuration, builder.Properties, dbConnectionFactory, ref handlers, options);
action?.Invoke(new TelegramBotHostBuilder(builder, handlers));
return builder;
}
@@ -102,16 +103,16 @@ public static class WideHostBuilderExtensions
///
/// Replaces TelegramBotHostBuilder. Configures DI, options, and handlers.
///
- public static IHostApplicationBuilder AddWideTelegrator(this IHostApplicationBuilder builder, TelegratorOptions? options = null, IHandlersCollection? handlers = null)
+ public static IHostApplicationBuilder AddWideTelegrator(this IHostApplicationBuilder builder, Func dbConnectionFactory, TelegratorOptions? options = null, IHandlersCollection? handlers = null)
{
- AddWideTelegratorInternal(builder.Services, builder.Configuration, builder.Properties, ref handlers, options);
+ AddWideTelegratorInternal(builder.Services, builder.Configuration, builder.Properties, dbConnectionFactory, ref handlers, options);
return builder;
}
///
/// Replaces TelegramBotHostBuilder. Configures DI, options, and handlers.
///
- internal static void AddWideTelegratorInternal(IServiceCollection services, IConfiguration configuration, IDictionary