diff --git a/Directory.Packages.props b/Directory.Packages.props
index 27cf1e7..2019dab 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -1,17 +1,17 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TgBotFrame.Commands.Authorization/TgBotFrame.Commands.Authorization.csproj b/TgBotFrame.Commands.Authorization/TgBotFrame.Commands.Authorization.csproj
index a90b0a1..2a2cf26 100644
--- a/TgBotFrame.Commands.Authorization/TgBotFrame.Commands.Authorization.csproj
+++ b/TgBotFrame.Commands.Authorization/TgBotFrame.Commands.Authorization.csproj
@@ -16,7 +16,7 @@
True
MIT
README.md
- 1.3.15
+ 2.0.0
True
snupkg
telegram,tg,commands
diff --git a/TgBotFrame.Commands.Help/Properties/Resources.Designer.cs b/TgBotFrame.Commands.Help/Properties/Resources.Designer.cs
index 303d60c..64ad13d 100644
--- a/TgBotFrame.Commands.Help/Properties/Resources.Designer.cs
+++ b/TgBotFrame.Commands.Help/Properties/Resources.Designer.cs
@@ -340,16 +340,9 @@ public static string HelpCommandController_HelpList_WithoutCategory {
}
///
- /// Ищет локализованную строку, похожую на Команды бота принимают два типа значений: команды и параметры\.
- ///Команда является идентификатором конкретного действия, которое должен
- ///совершить бот\. Идентификаторы команд не зависят от регистра: возможно
- ///использовать как строчные, так и заглавные буквы\.
- ///Параметрами являются данные необходимые для совершения действия\.
+ /// Ищет локализованную строку, похожую на Команды бота принимают два типа значений: команды и параметры\. Команда является идентификатором конкретного действия, которое должен совершить бот\. Идентификаторы команд не зависят от регистра: возможно использовать как строчные, так и заглавные буквы\. Параметрами являются данные необходимые для совершения действия\.
///
- ///Любая команда начинается с символа `/`; сразу после символа идет идентификатор
- ///команды\.
- ///Параметры разделяются между собой и идентификатором команды пробелами\.
- ///Например: на сообще [остаток строки не уместился]";.
+ ///Любая команда начинается с символа `/`; сразу после символа идет идентификатор команды\. Параметры разделяются между собой и идентификатором команды пробелами\. Например: на сообщение `/H [остаток строки не уместился]";.
///
public static string HelpCommandController_HelpSyntax_Title {
get {
diff --git a/TgBotFrame.Commands.Help/Properties/Resources.en.resx b/TgBotFrame.Commands.Help/Properties/Resources.en.resx
index f7962d0..1c31d7d 100644
--- a/TgBotFrame.Commands.Help/Properties/Resources.en.resx
+++ b/TgBotFrame.Commands.Help/Properties/Resources.en.resx
@@ -238,14 +238,9 @@
This category contains help commands. Most of these commands can be used without entering them manually, using the menu buttons from the help command
- Bot commands accept two types of values: commands and arguments\.
-A command is an identifier of a specific action that the bot should perform\. Command identifiers are case\-insensitive: you can use both lowercase and uppercase letters\.
-Parameters are the data required to perform an action\.
+ Bot commands accept two types of values: commands and arguments\. A command is an identifier of a specific action that the bot should perform\. Command identifiers are case\-insensitive: you can use both lowercase and uppercase letters\. Parameters are the data required to perform an action\.
-Any command begins with the `/` symbol; immediately after the symbol comes the
-command identifier\.
-Parameters are separated from each other and the command identifier by spaces\.
-For example: the bot will respond to the message `/HelpCommand Help` with help on the `Help` command\.
+Any command begins with the `/` symbol; immediately after the symbol comes the command identifier\. Parameters are separated from each other and the command identifier by spaces\. For example: the bot will respond to the message `/HelpCommand Help` with help on the `Help` command\.
Argument formats:
diff --git a/TgBotFrame.Commands.Help/Properties/Resources.resx b/TgBotFrame.Commands.Help/Properties/Resources.resx
index 21f0489..6f009e1 100644
--- a/TgBotFrame.Commands.Help/Properties/Resources.resx
+++ b/TgBotFrame.Commands.Help/Properties/Resources.resx
@@ -179,16 +179,9 @@
(без категории)
- Команды бота принимают два типа значений: команды и параметры\.
-Команда является идентификатором конкретного действия, которое должен
-совершить бот\. Идентификаторы команд не зависят от регистра: возможно
-использовать как строчные, так и заглавные буквы\.
-Параметрами являются данные необходимые для совершения действия\.
+ Команды бота принимают два типа значений: команды и параметры\. Команда является идентификатором конкретного действия, которое должен совершить бот\. Идентификаторы команд не зависят от регистра: возможно использовать как строчные, так и заглавные буквы\. Параметрами являются данные необходимые для совершения действия\.
-Любая команда начинается с символа `/`; сразу после символа идет идентификатор
-команды\.
-Параметры разделяются между собой и идентификатором команды пробелами\.
-Например: на сообщение `/HelpCommand Help` бот ответит справкой по команде `Help`\.
+Любая команда начинается с символа `/`; сразу после символа идет идентификатор команды\. Параметры разделяются между собой и идентификатором команды пробелами\. Например: на сообщение `/HelpCommand Help` бот ответит справкой по команде `Help`\.
Форматы аргументов:
diff --git a/TgBotFrame.Commands.Help/TgBotFrame.Commands.Help.csproj b/TgBotFrame.Commands.Help/TgBotFrame.Commands.Help.csproj
index b59771f..bb05f74 100644
--- a/TgBotFrame.Commands.Help/TgBotFrame.Commands.Help.csproj
+++ b/TgBotFrame.Commands.Help/TgBotFrame.Commands.Help.csproj
@@ -16,7 +16,7 @@
True
MIT
README.md
- 1.4.17
+ 2.0.0
True
snupkg
telegram,tg,commands
diff --git a/TgBotFrame.Commands.RateLimit/TgBotFrame.Commands.RateLimit.csproj b/TgBotFrame.Commands.RateLimit/TgBotFrame.Commands.RateLimit.csproj
index 292764d..7ff2e2e 100644
--- a/TgBotFrame.Commands.RateLimit/TgBotFrame.Commands.RateLimit.csproj
+++ b/TgBotFrame.Commands.RateLimit/TgBotFrame.Commands.RateLimit.csproj
@@ -16,7 +16,7 @@
True
MIT
README.md
- 1.2.10
+ 2.0.0
True
snupkg
telegram,tg,commands
@@ -31,14 +31,14 @@
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
\ No newline at end of file
diff --git a/TgBotFrame.Commands.Start/TgBotFrame.Commands.Start.csproj b/TgBotFrame.Commands.Start/TgBotFrame.Commands.Start.csproj
index a740b5e..a8dea92 100644
--- a/TgBotFrame.Commands.Start/TgBotFrame.Commands.Start.csproj
+++ b/TgBotFrame.Commands.Start/TgBotFrame.Commands.Start.csproj
@@ -16,7 +16,7 @@
True
MIT
README.md
- 1.2.11
+ 2.0.0
True
snupkg
telegram,tg,commands
diff --git a/TgBotFrame.Commands/TgBotFrame.Commands.csproj b/TgBotFrame.Commands/TgBotFrame.Commands.csproj
index 9fc3184..e24c247 100644
--- a/TgBotFrame.Commands/TgBotFrame.Commands.csproj
+++ b/TgBotFrame.Commands/TgBotFrame.Commands.csproj
@@ -16,7 +16,7 @@
True
MIT
README.md
- 1.3.11
+ 2.0.0
True
snupkg
telegram,tg,commands
diff --git a/TgBotFrame.Tests/PipelineTests.cs b/TgBotFrame.Tests/PipelineTests.cs
index d08571a..96c980d 100644
--- a/TgBotFrame.Tests/PipelineTests.cs
+++ b/TgBotFrame.Tests/PipelineTests.cs
@@ -33,8 +33,7 @@ public async Task IncPipeline()
{
IServiceCollection services = new ServiceCollection();
services.AddSingleton();
- services.AddSingleton(
- x => x.GetRequiredService());
+ services.AddSingleton(x => x.GetRequiredService());
services.AddSingleton();
services.AddLogging(builder => builder.AddConsole());
services.AddMetrics();
@@ -55,11 +54,9 @@ public async Task IncDecPipeline()
{
IServiceCollection services = new ServiceCollection();
services.AddSingleton();
- services.AddSingleton(
- x => x.GetRequiredService());
+ services.AddSingleton(x => x.GetRequiredService());
services.AddSingleton();
- services.AddSingleton(
- x => x.GetRequiredService());
+ services.AddSingleton(x => x.GetRequiredService());
services.AddSingleton();
services.AddLogging(builder => builder.AddConsole());
services.AddMetrics();
diff --git a/TgBotFrame.Tests/Stubs/StubTelegramBotClient.cs b/TgBotFrame.Tests/Stubs/StubTelegramBotClient.cs
index 88256c9..1269041 100644
--- a/TgBotFrame.Tests/Stubs/StubTelegramBotClient.cs
+++ b/TgBotFrame.Tests/Stubs/StubTelegramBotClient.cs
@@ -19,36 +19,36 @@ public Task SendRequest(IRequest request,
switch (request)
{
case GetMeRequest:
- {
- User user = new()
{
- Id = 0,
- Username = "TEST",
- LanguageCode = "en",
- FirstName = "TEST_NAME",
- IsBot = true,
- };
- string json = JsonSerializer.Serialize(user);
- return Task.FromResult(JsonSerializer.Deserialize(json)!);
- }
+ User user = new()
+ {
+ Id = 0,
+ Username = "TEST",
+ LanguageCode = "en",
+ FirstName = "TEST_NAME",
+ IsBot = true,
+ };
+ string json = JsonSerializer.Serialize(user);
+ return Task.FromResult(JsonSerializer.Deserialize(json)!);
+ }
case SendMessageRequest sendMessageRequest:
- {
- Message message = new()
{
- Id = Random.Shared.Next(0),
- Chat = new()
+ Message message = new()
{
- Id = sendMessageRequest.ChatId.Identifier.GetValueOrDefault(0L),
- Username = sendMessageRequest.ChatId.Username,
- Type = ChatType.Private,
- },
- Text = sendMessageRequest.Text,
- MessageThreadId = sendMessageRequest.MessageThreadId,
- };
- Messages.Enqueue(sendMessageRequest);
- string json = JsonSerializer.Serialize(message);
- return Task.FromResult(JsonSerializer.Deserialize(json)!);
- }
+ Id = Random.Shared.Next(0),
+ Chat = new()
+ {
+ Id = sendMessageRequest.ChatId.Identifier.GetValueOrDefault(0L),
+ Username = sendMessageRequest.ChatId.Username,
+ Type = ChatType.Private,
+ },
+ Text = sendMessageRequest.Text,
+ MessageThreadId = sendMessageRequest.MessageThreadId,
+ };
+ Messages.Enqueue(sendMessageRequest);
+ string json = JsonSerializer.Serialize(message);
+ return Task.FromResult(JsonSerializer.Deserialize(json)!);
+ }
default:
throw new NotImplementedException();
}
diff --git a/TgBotFrame/TgBotFrame.csproj b/TgBotFrame/TgBotFrame.csproj
index 6d97268..4c29f15 100644
--- a/TgBotFrame/TgBotFrame.csproj
+++ b/TgBotFrame/TgBotFrame.csproj
@@ -16,7 +16,7 @@
True
MIT
README.md
- 1.2.10
+ 2.0.0
True
snupkg
telegram,tg,commands,bot