diff --git a/Examples/AsyncFormUpdates/App.config b/Examples/AsyncFormUpdates/App.config deleted file mode 100644 index e784e10..0000000 --- a/Examples/AsyncFormUpdates/App.config +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/AsyncFormUpdates/AsyncFormUpdates.csproj b/Examples/AsyncFormUpdates/AsyncFormUpdates.csproj index 95f3bea..5e6ad70 100644 --- a/Examples/AsyncFormUpdates/AsyncFormUpdates.csproj +++ b/Examples/AsyncFormUpdates/AsyncFormUpdates.csproj @@ -8,12 +8,7 @@ - - - - - - + diff --git a/Examples/AsyncFormUpdates/Forms/AsyncFormEdit.cs b/Examples/AsyncFormUpdates/Forms/AsyncFormEdit.cs new file mode 100644 index 0000000..a83fc63 --- /dev/null +++ b/Examples/AsyncFormUpdates/Forms/AsyncFormEdit.cs @@ -0,0 +1,48 @@ +using TelegramBotBase.Attributes; +using TelegramBotBase.Base; +using TelegramBotBase.Form; + +namespace AsyncFormUpdates.Forms; + +public class AsyncFormEdit : FormBase +{ + [SaveState] private int _counter; + + private int _messageId; + + public override Task Load(MessageResult message) + { + _counter++; + return Task.CompletedTask; + } + + public override async Task Action(MessageResult message) + { + await message.ConfirmAction(); + + switch (message.RawData ?? "") + { + case "back": + var st = new Start(); + await NavigateTo(st); + + break; + } + } + + public override async Task Render(MessageResult message) + { + var bf = new ButtonForm(); + bf.AddButtonRow("Back", "back"); + + if (_messageId != 0) + { + await Device.Edit(_messageId, $"Your current count is at: {_counter}", bf); + } + else + { + var m = await Device.Send($"Your current count is at: {_counter}", bf, disableNotification: true); + _messageId = m.MessageId; + } + } +} diff --git a/Examples/AsyncFormUpdates/Forms/AsyncFormUpdate.cs b/Examples/AsyncFormUpdates/Forms/AsyncFormUpdate.cs new file mode 100644 index 0000000..f2fb5dd --- /dev/null +++ b/Examples/AsyncFormUpdates/Forms/AsyncFormUpdate.cs @@ -0,0 +1,38 @@ +using TelegramBotBase.Attributes; +using TelegramBotBase.Base; +using TelegramBotBase.Form; + +namespace AsyncFormUpdates.Forms; + +public class AsyncFormUpdate : AutoCleanForm +{ + [SaveState] private int _counter; + + public override Task Load(MessageResult message) + { + _counter++; + return Task.CompletedTask; + } + + public override async Task Action(MessageResult message) + { + await message.ConfirmAction(); + + switch (message.RawData ?? "") + { + case "back": + var st = new Start(); + await NavigateTo(st); + + break; + } + } + + public override async Task Render(MessageResult message) + { + var bf = new ButtonForm(); + bf.AddButtonRow("Back", "back"); + + await Device.Send($"Your current count is at: {_counter}", bf, disableNotification: true); + } +} diff --git a/Examples/AsyncFormUpdates/Forms/Start.cs b/Examples/AsyncFormUpdates/Forms/Start.cs new file mode 100644 index 0000000..3756722 --- /dev/null +++ b/Examples/AsyncFormUpdates/Forms/Start.cs @@ -0,0 +1,42 @@ +using TelegramBotBase.Base; +using TelegramBotBase.Form; + +namespace AsyncFormUpdates.Forms; + +public class Start : AutoCleanForm +{ + public override async Task Action(MessageResult message) + { + await message.ConfirmAction(); + + switch (message.RawData ?? "") + { + case "async": + + var afe = new AsyncFormEdit(); + await NavigateTo(afe); + + + break; + + case "async_del": + + var afu = new AsyncFormUpdate(); + await NavigateTo(afu); + + + break; + } + } + + public override async Task Render(MessageResult message) + { + var bf = new ButtonForm(); + + bf.AddButtonRow("Open Async Form with AutoCleanupForm", "async_del"); + + bf.AddButtonRow("Open Async Form with Edit", "async"); + + await Device.Send("Choose your option", bf); + } +} diff --git a/Examples/AsyncFormUpdates/Program.cs b/Examples/AsyncFormUpdates/Program.cs index 63ecc9d..cc7404d 100644 --- a/Examples/AsyncFormUpdates/Program.cs +++ b/Examples/AsyncFormUpdates/Program.cs @@ -1,49 +1,47 @@ using System.Timers; -using AsyncFormUpdates.forms; +using AsyncFormUpdates.Forms; using TelegramBotBase; using TelegramBotBase.Builder; using Timer = System.Timers.Timer; -namespace AsyncFormUpdates +namespace AsyncFormUpdates; + +internal class Program { - internal class Program + private static BotBase __bot; + + private static async Task Main(string[] args) { - private static BotBase __bot; + __bot = BotBaseBuilder.Create() + .QuickStart(Environment.GetEnvironmentVariable("API_KEY") ?? + throw new Exception("API_KEY is not set")) + .Build(); - private static async Task Main(string[] args) + await __bot.Start(); + + var timer = new Timer(5000); + + timer.Elapsed += Timer_Elapsed; + timer.Start(); + + Console.ReadLine(); + + timer.Stop(); + await __bot.Stop(); + } + + private static async void Timer_Elapsed(object sender, ElapsedEventArgs e) + { + foreach (var s in __bot.Sessions.SessionList) { - var apiKey = "APIKey"; - - __bot = BotBaseBuilder.Create() - .QuickStart(apiKey) - .Build(); - - await __bot.Start(); - - var timer = new Timer(5000); - - timer.Elapsed += Timer_Elapsed; - timer.Start(); - - Console.ReadLine(); - - timer.Stop(); - await __bot.Stop(); - } - - private static async void Timer_Elapsed(object sender, ElapsedEventArgs e) - { - foreach (var s in __bot.Sessions.SessionList) + //Only for AsyncUpdateForm + if (s.Value.ActiveForm.GetType() != typeof(AsyncFormUpdate) && + s.Value.ActiveForm.GetType() != typeof(AsyncFormEdit)) { - //Only for AsyncUpdateForm - if (s.Value.ActiveForm.GetType() != typeof(AsyncFormUpdate) && - s.Value.ActiveForm.GetType() != typeof(AsyncFormEdit)) - { - continue; - } - - await __bot.InvokeMessageLoop(s.Key); + continue; } + + await __bot.InvokeMessageLoop(s.Key); } } } diff --git a/Examples/AsyncFormUpdates/forms/AsyncFormEdit.cs b/Examples/AsyncFormUpdates/forms/AsyncFormEdit.cs deleted file mode 100644 index 2ad3694..0000000 --- a/Examples/AsyncFormUpdates/forms/AsyncFormEdit.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System.Threading.Tasks; -using TelegramBotBase.Attributes; -using TelegramBotBase.Base; -using TelegramBotBase.Form; - -namespace AsyncFormUpdates.forms -{ - public class AsyncFormEdit : FormBase - { - [SaveState] private int _counter; - - private int _messageId; - - public override Task Load(MessageResult message) - { - _counter++; - return Task.CompletedTask; - } - - public override async Task Action(MessageResult message) - { - await message.ConfirmAction(); - - switch (message.RawData ?? "") - { - case "back": - - var st = new Start(); - await NavigateTo(st); - - break; - } - } - - public override async Task Render(MessageResult message) - { - var bf = new ButtonForm(); - bf.AddButtonRow("Back", "back"); - - if (_messageId != 0) - { - await Device.Edit(_messageId, $"Your current count is at: {_counter}", bf); - } - else - { - var m = await Device.Send($"Your current count is at: {_counter}", bf, disableNotification: true); - _messageId = m.MessageId; - } - } - } -} \ No newline at end of file diff --git a/Examples/AsyncFormUpdates/forms/AsyncFormUpdate.cs b/Examples/AsyncFormUpdates/forms/AsyncFormUpdate.cs deleted file mode 100644 index 8a3b0b1..0000000 --- a/Examples/AsyncFormUpdates/forms/AsyncFormUpdate.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Threading.Tasks; -using TelegramBotBase.Attributes; -using TelegramBotBase.Base; -using TelegramBotBase.Form; - -namespace AsyncFormUpdates.forms -{ - public class AsyncFormUpdate : AutoCleanForm - { - [SaveState] private int _counter; - - - public override Task Load(MessageResult message) - { - _counter++; - return Task.CompletedTask; - } - - public override async Task Action(MessageResult message) - { - await message.ConfirmAction(); - - switch (message.RawData ?? "") - { - case "back": - - var st = new Start(); - await NavigateTo(st); - - break; - } - } - - public override async Task Render(MessageResult message) - { - var bf = new ButtonForm(); - bf.AddButtonRow("Back", "back"); - - await Device.Send($"Your current count is at: {_counter}", bf, disableNotification: true); - } - } -} \ No newline at end of file diff --git a/Examples/AsyncFormUpdates/forms/Start.cs b/Examples/AsyncFormUpdates/forms/Start.cs deleted file mode 100644 index 8713a04..0000000 --- a/Examples/AsyncFormUpdates/forms/Start.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System.Threading.Tasks; -using TelegramBotBase.Base; -using TelegramBotBase.Form; - -namespace AsyncFormUpdates.forms -{ - public class Start : AutoCleanForm - { - public override async Task Action(MessageResult message) - { - await message.ConfirmAction(); - - switch (message.RawData ?? "") - { - case "async": - - var afe = new AsyncFormEdit(); - await NavigateTo(afe); - - - break; - - case "async_del": - - var afu = new AsyncFormUpdate(); - await NavigateTo(afu); - - - break; - } - } - - public override async Task Render(MessageResult message) - { - var bf = new ButtonForm(); - - bf.AddButtonRow("Open Async Form with AutoCleanupForm", "async_del"); - - bf.AddButtonRow("Open Async Form with Edit", "async"); - - await Device.Send("Choose your option", bf); - } - } -} \ No newline at end of file diff --git a/Examples/JoinHiderBot/forms/GroupManageForm.cs b/Examples/JoinHiderBot/Forms/GroupManageForm.cs similarity index 80% rename from Examples/JoinHiderBot/forms/GroupManageForm.cs rename to Examples/JoinHiderBot/Forms/GroupManageForm.cs index 6ccf246..5d3915e 100644 --- a/Examples/JoinHiderBot/forms/GroupManageForm.cs +++ b/Examples/JoinHiderBot/Forms/GroupManageForm.cs @@ -1,9 +1,8 @@ -using System.Threading.Tasks; -using Telegram.Bot.Types.Enums; +using Telegram.Bot.Types.Enums; using TelegramBotBase.Args; using TelegramBotBase.Form; -namespace JoinHiderBot.forms; +namespace JoinHiderBot.Forms; public class GroupManageForm : GroupForm { @@ -19,4 +18,4 @@ public class GroupManageForm : GroupForm await Device.DeleteMessage(m); } -} \ No newline at end of file +} diff --git a/Examples/JoinHiderBot/forms/Start.cs b/Examples/JoinHiderBot/Forms/Start.cs similarity index 80% rename from Examples/JoinHiderBot/forms/Start.cs rename to Examples/JoinHiderBot/Forms/Start.cs index 0b868b6..c94b60a 100644 --- a/Examples/JoinHiderBot/forms/Start.cs +++ b/Examples/JoinHiderBot/Forms/Start.cs @@ -1,8 +1,7 @@ -using System.Threading.Tasks; -using TelegramBotBase.Base; +using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace JoinHiderBot.forms; +namespace JoinHiderBot.Forms; public class Start : SplitterForm { diff --git a/Examples/JoinHiderBot/JoinHiderBot.csproj b/Examples/JoinHiderBot/JoinHiderBot.csproj index 76dddc9..5e6ad70 100644 --- a/Examples/JoinHiderBot/JoinHiderBot.csproj +++ b/Examples/JoinHiderBot/JoinHiderBot.csproj @@ -3,10 +3,12 @@ Exe net6.0 + enable + disable - + diff --git a/Examples/JoinHiderBot/Program.cs b/Examples/JoinHiderBot/Program.cs index 9c0bfff..054c761 100644 --- a/Examples/JoinHiderBot/Program.cs +++ b/Examples/JoinHiderBot/Program.cs @@ -1,21 +1,19 @@ -using System; -using JoinHiderBot.forms; +using JoinHiderBot.Forms; using TelegramBotBase.Builder; namespace JoinHiderBot; internal class Program { - private static void Main(string[] args) + private static async Task Main(string[] args) { - var apiKey = ""; - var bot = BotBaseBuilder.Create() - .QuickStart(apiKey) + .QuickStart(Environment.GetEnvironmentVariable("API_KEY") ?? + throw new Exception("API_KEY is not set")) .Build(); - bot.Start(); + await bot.Start(); Console.ReadLine(); } -} \ No newline at end of file +} diff --git a/Examples/SystemCommandsBot/commands/Commando.cs b/Examples/SystemCommandsBot/Command.cs similarity index 84% rename from Examples/SystemCommandsBot/commands/Commando.cs rename to Examples/SystemCommandsBot/Command.cs index 8eb56d1..cd58074 100644 --- a/Examples/SystemCommandsBot/commands/Commando.cs +++ b/Examples/SystemCommandsBot/Command.cs @@ -1,6 +1,6 @@ -namespace SystemCommandsBot.commands; +namespace SystemCommandsBot; -public class Commando +public class Command { public int Id { get; set; } @@ -18,4 +18,4 @@ public class Commando public int? MaxInstances { get; set; } public string ProcName { get; set; } -} \ No newline at end of file +} diff --git a/Examples/SystemCommandsBot/config/Config.cs b/Examples/SystemCommandsBot/Config.cs similarity index 82% rename from Examples/SystemCommandsBot/config/Config.cs rename to Examples/SystemCommandsBot/Config.cs index 3125790..3a74502 100644 --- a/Examples/SystemCommandsBot/config/Config.cs +++ b/Examples/SystemCommandsBot/Config.cs @@ -1,30 +1,27 @@ -using System; -using System.Collections.Generic; -using System.IO; -using Newtonsoft.Json; -using SystemCommandsBot.commands; +using Newtonsoft.Json; -namespace SystemCommandsBot.config; +namespace SystemCommandsBot; public class Config { public Config() { - Commandos = new List(); + Commands = new List(); } public string Password { get; set; } public string ApiKey { get; set; } - public List Commandos { get; set; } + public List Commands { get; set; } public void LoadDefaultValues() { ApiKey = ""; - Commandos.Add(new Commando + Commands.Add(new Command { - Id = 0, Enabled = true, Title = "Test Befehl", ShellCmd = "explorer.exe", Action = "start", MaxInstances = 2 + Id = 0, Enabled = true, Title = "Test Befehl", ShellCmd = "explorer.exe", Action = "start", + MaxInstances = 2 }); } @@ -90,4 +87,4 @@ public class Config { } } -} \ No newline at end of file +} diff --git a/Examples/SystemCommandsBot/forms/CmdForm.cs b/Examples/SystemCommandsBot/Forms/CmdForm.cs similarity index 94% rename from Examples/SystemCommandsBot/forms/CmdForm.cs rename to Examples/SystemCommandsBot/Forms/CmdForm.cs index a5660fe..58a0674 100644 --- a/Examples/SystemCommandsBot/forms/CmdForm.cs +++ b/Examples/SystemCommandsBot/Forms/CmdForm.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace SystemCommandsBot.forms; +namespace SystemCommandsBot.Forms; public class CmdForm : AutoCleanForm { @@ -30,7 +30,7 @@ public class CmdForm : AutoCleanForm return; } - var cmd = Program.BotConfig.Commandos.Where(a => a.Enabled && a.Id == id).FirstOrDefault(); + var cmd = Program.BotConfig.Commands.Where(a => a.Enabled && a.Id == id).FirstOrDefault(); if (cmd == null) { await Device.Send("Cmd nicht verfügbar."); @@ -145,7 +145,7 @@ public class CmdForm : AutoCleanForm { if (MessageId == null) { - var buttons = Program.BotConfig.Commandos.Where(a => a.Enabled) + var buttons = Program.BotConfig.Commands.Where(a => a.Enabled) .Select(a => new ButtonBase(a.Title, a.Id.ToString())); var bf = new ButtonForm(); @@ -153,4 +153,4 @@ public class CmdForm : AutoCleanForm await Device.Send("Deine Optionen", bf); } } -} \ No newline at end of file +} diff --git a/Examples/SystemCommandsBot/forms/StartForm.cs b/Examples/SystemCommandsBot/Forms/StartForm.cs similarity index 95% rename from Examples/SystemCommandsBot/forms/StartForm.cs rename to Examples/SystemCommandsBot/Forms/StartForm.cs index 7b34f4d..885f4d2 100644 --- a/Examples/SystemCommandsBot/forms/StartForm.cs +++ b/Examples/SystemCommandsBot/Forms/StartForm.cs @@ -3,7 +3,7 @@ using System.Threading.Tasks; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace SystemCommandsBot.forms; +namespace SystemCommandsBot.Forms; public class StartForm : FormBase { diff --git a/Examples/SystemCommandsBot/Program.cs b/Examples/SystemCommandsBot/Program.cs index b5330ac..4d44afe 100644 --- a/Examples/SystemCommandsBot/Program.cs +++ b/Examples/SystemCommandsBot/Program.cs @@ -1,6 +1,6 @@ using System; -using SystemCommandsBot.config; -using SystemCommandsBot.forms; +using System.Threading.Tasks; +using SystemCommandsBot.Forms; using TelegramBotBase.Builder; namespace SystemCommandsBot; @@ -9,8 +9,7 @@ internal class Program { public static Config BotConfig { get; set; } - - private static void Main(string[] args) + private static async Task Main(string[] args) { BotConfig = Config.Load(); @@ -25,13 +24,12 @@ internal class Program .QuickStart(BotConfig.ApiKey) .Build(); - bot.Start(); + await bot.Start(); Console.WriteLine("Bot started"); - Console.ReadLine(); - bot.Stop(); + await bot.Stop(); } -} \ No newline at end of file +} diff --git a/Examples/SystemCommandsBot/SystemCommandsBot.csproj b/Examples/SystemCommandsBot/SystemCommandsBot.csproj index 95990e5..7423d4a 100644 --- a/Examples/SystemCommandsBot/SystemCommandsBot.csproj +++ b/Examples/SystemCommandsBot/SystemCommandsBot.csproj @@ -3,11 +3,12 @@ Exe net6.0 + enable + disable - - + diff --git a/TelegramBotBase.Test/App.config b/TelegramBotBase.Test/App.config deleted file mode 100644 index 94f3e49..0000000 --- a/TelegramBotBase.Test/App.config +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/TelegramBotBase.Test/Program.cs b/TelegramBotBase.Test/Program.cs index 6809cb7..9276cbd 100644 --- a/TelegramBotBase.Test/Program.cs +++ b/TelegramBotBase.Test/Program.cs @@ -5,19 +5,18 @@ using TelegramBotBase.Args; using TelegramBotBase.Builder; using TelegramBotBase.Commands; using TelegramBotBase.Enums; -using TelegramBotBaseTest.Tests; +using TelegramBotBase.Example.Tests; -namespace TelegramBotBaseTest; +namespace TelegramBotBase.Example; internal class Program { private static async Task Main(string[] args) { - var apiKey = ""; - - var bb = BotBaseBuilder + var bot = BotBaseBuilder .Create() - .WithAPIKey(apiKey) + .WithAPIKey(Environment.GetEnvironmentVariable("API_KEY") ?? + throw new Exception("API_KEY is not set")) .DefaultMessageLoop() .WithStartForm() .NoProxy() @@ -36,26 +35,26 @@ internal class Program .Build(); - bb.BotCommand += Bb_BotCommand; + bot.BotCommand += Bb_BotCommand; //Update Bot commands to botfather - bb.UploadBotCommands().Wait(); + bot.UploadBotCommands().Wait(); - bb.SetSetting(ESettings.LogAllMessages, true); + bot.SetSetting(ESettings.LogAllMessages, true); - bb.Message += (s, en) => + bot.Message += (s, en) => { Console.WriteLine(en.DeviceId + " " + en.Message.MessageText + " " + (en.Message.RawData ?? "")); }; - await bb.Start(); + await bot.Start(); Console.WriteLine("Telegram Bot started..."); Console.WriteLine("Press q to quit application."); Console.ReadLine(); - await bb.Stop(); + await bot.Stop(); } private static async Task Bb_BotCommand(object sender, BotCommandEventArgs en) diff --git a/TelegramBotBase.Test/Properties/AssemblyInfo.cs b/TelegramBotBase.Test/Properties/AssemblyInfo.cs deleted file mode 100644 index af85f77..0000000 --- a/TelegramBotBase.Test/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// Allgemeine Informationen über eine Assembly werden über die folgenden -// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, -// die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("TelegramBotBaseTest")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("TelegramBotBaseTest")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar -// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von -// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. -[assembly: ComVisible(false)] - -// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird -[assembly: Guid("5817184c-0d59-4924-ac6c-6b943967811c")] - -// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: -// -// Hauptversion -// Nebenversion -// Buildnummer -// Revision -// -// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern -// übernehmen, indem Sie "*" eingeben: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/TelegramBotBase.Test/TelegramBotBase.Example.csproj b/TelegramBotBase.Test/TelegramBotBase.Example.csproj new file mode 100644 index 0000000..3e534ad --- /dev/null +++ b/TelegramBotBase.Test/TelegramBotBase.Example.csproj @@ -0,0 +1,15 @@ + + + + Exe + net6.0 + enable + disable + + + + + + + + diff --git a/TelegramBotBase.Test/TelegramBotBaseTest.csproj b/TelegramBotBase.Test/TelegramBotBaseTest.csproj deleted file mode 100644 index c40ee57..0000000 --- a/TelegramBotBase.Test/TelegramBotBaseTest.csproj +++ /dev/null @@ -1,35 +0,0 @@ - - - - Exe - netcoreapp3.1;net5;net6 - 10 - false - Debug;Release - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - diff --git a/TelegramBotBase.Test/Tests/ButtonTestForm.cs b/TelegramBotBase.Test/Tests/ButtonTestForm.cs index f19b7d0..3bfab76 100644 --- a/TelegramBotBase.Test/Tests/ButtonTestForm.cs +++ b/TelegramBotBase.Test/Tests/ButtonTestForm.cs @@ -3,7 +3,7 @@ using System.Threading.Tasks; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests; +namespace TelegramBotBase.Example.Tests; public class ButtonTestForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/ButtonGridForm.cs b/TelegramBotBase.Test/Tests/Controls/ButtonGridForm.cs index e0492ec..47e7763 100644 --- a/TelegramBotBase.Test/Tests/Controls/ButtonGridForm.cs +++ b/TelegramBotBase.Test/Tests/Controls/ButtonGridForm.cs @@ -4,7 +4,7 @@ using TelegramBotBase.Controls.Hybrid; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class ButtonGridForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/ButtonGridPagingForm.cs b/TelegramBotBase.Test/Tests/Controls/ButtonGridPagingForm.cs index 3ce477a..f12b6a4 100644 --- a/TelegramBotBase.Test/Tests/Controls/ButtonGridPagingForm.cs +++ b/TelegramBotBase.Test/Tests/Controls/ButtonGridPagingForm.cs @@ -6,7 +6,7 @@ using TelegramBotBase.Controls.Hybrid; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class ButtonGridPagingForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/ButtonGridTagForm.cs b/TelegramBotBase.Test/Tests/Controls/ButtonGridTagForm.cs index 23b4b1d..78bc356 100644 --- a/TelegramBotBase.Test/Tests/Controls/ButtonGridTagForm.cs +++ b/TelegramBotBase.Test/Tests/Controls/ButtonGridTagForm.cs @@ -8,7 +8,7 @@ using TelegramBotBase.DataSources; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class ButtonGridTagForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/CalendarPickerForm.cs b/TelegramBotBase.Test/Tests/Controls/CalendarPickerForm.cs index 69de30f..fedde60 100644 --- a/TelegramBotBase.Test/Tests/Controls/CalendarPickerForm.cs +++ b/TelegramBotBase.Test/Tests/Controls/CalendarPickerForm.cs @@ -5,7 +5,7 @@ using TelegramBotBase.Controls.Inline; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class CalendarPickerForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/CheckedButtonListForm.cs b/TelegramBotBase.Test/Tests/Controls/CheckedButtonListForm.cs index 33849ae..55662e3 100644 --- a/TelegramBotBase.Test/Tests/Controls/CheckedButtonListForm.cs +++ b/TelegramBotBase.Test/Tests/Controls/CheckedButtonListForm.cs @@ -6,7 +6,7 @@ using TelegramBotBase.DataSources; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class CheckedButtonListForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/MonthPickerForm.cs b/TelegramBotBase.Test/Tests/Controls/MonthPickerForm.cs index c44021f..8c5acda 100644 --- a/TelegramBotBase.Test/Tests/Controls/MonthPickerForm.cs +++ b/TelegramBotBase.Test/Tests/Controls/MonthPickerForm.cs @@ -5,7 +5,7 @@ using TelegramBotBase.Controls.Inline; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class MonthPickerForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/MultiToggleButtons.cs b/TelegramBotBase.Test/Tests/Controls/MultiToggleButtons.cs index c75c065..fb46af5 100644 --- a/TelegramBotBase.Test/Tests/Controls/MultiToggleButtons.cs +++ b/TelegramBotBase.Test/Tests/Controls/MultiToggleButtons.cs @@ -7,7 +7,7 @@ using TelegramBotBase.Controls.Inline; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class MultiToggleButtons : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/MultiViewForm.cs b/TelegramBotBase.Test/Tests/Controls/MultiViewForm.cs index 7e4bba2..fbf8aa8 100644 --- a/TelegramBotBase.Test/Tests/Controls/MultiViewForm.cs +++ b/TelegramBotBase.Test/Tests/Controls/MultiViewForm.cs @@ -3,10 +3,10 @@ using TelegramBotBase.Args; using TelegramBotBase.Controls.Hybrid; using TelegramBotBase.DataSources; using TelegramBotBase.Enums; +using TelegramBotBase.Example.Tests.Controls.Subclass; using TelegramBotBase.Form; -using TelegramBotBaseTest.Tests.Controls.Subclass; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class MultiViewForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/Subclass/MultiViewTest.cs b/TelegramBotBase.Test/Tests/Controls/Subclass/MultiViewTest.cs index 08c7649..c985d54 100644 --- a/TelegramBotBase.Test/Tests/Controls/Subclass/MultiViewTest.cs +++ b/TelegramBotBase.Test/Tests/Controls/Subclass/MultiViewTest.cs @@ -4,7 +4,7 @@ using TelegramBotBase.Base; using TelegramBotBase.Controls.Hybrid; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls.Subclass; +namespace TelegramBotBase.Example.Tests.Controls.Subclass; public class MultiViewTest : MultiView { diff --git a/TelegramBotBase.Test/Tests/Controls/ToggleButtons.cs b/TelegramBotBase.Test/Tests/Controls/ToggleButtons.cs index 67db7e7..77c2e96 100644 --- a/TelegramBotBase.Test/Tests/Controls/ToggleButtons.cs +++ b/TelegramBotBase.Test/Tests/Controls/ToggleButtons.cs @@ -5,7 +5,7 @@ using TelegramBotBase.Controls.Inline; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class ToggleButtons : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Controls/TreeViewForms.cs b/TelegramBotBase.Test/Tests/Controls/TreeViewForms.cs index b5d7465..0cf9549 100644 --- a/TelegramBotBase.Test/Tests/Controls/TreeViewForms.cs +++ b/TelegramBotBase.Test/Tests/Controls/TreeViewForms.cs @@ -5,7 +5,7 @@ using TelegramBotBase.Controls.Inline; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Controls; +namespace TelegramBotBase.Example.Tests.Controls; public class TreeViewForms : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/DataForm.cs b/TelegramBotBase.Test/Tests/DataForm.cs index 7811d33..49554d0 100644 --- a/TelegramBotBase.Test/Tests/DataForm.cs +++ b/TelegramBotBase.Test/Tests/DataForm.cs @@ -7,7 +7,7 @@ using Telegram.Bot.Types.ReplyMarkups; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests; +namespace TelegramBotBase.Example.Tests; public class DataForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/DataSources/CustomDataSource.cs b/TelegramBotBase.Test/Tests/DataSources/CustomDataSource.cs index 0246920..079d448 100644 --- a/TelegramBotBase.Test/Tests/DataSources/CustomDataSource.cs +++ b/TelegramBotBase.Test/Tests/DataSources/CustomDataSource.cs @@ -8,7 +8,7 @@ using TelegramBotBase.Controls.Hybrid; using TelegramBotBase.DataSources; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.DataSources; +namespace TelegramBotBase.Example.Tests.DataSources; public class CustomDataSource : ButtonFormDataSource { diff --git a/TelegramBotBase.Test/Tests/DataSources/List.cs b/TelegramBotBase.Test/Tests/DataSources/List.cs index 35c55d7..cde1a85 100644 --- a/TelegramBotBase.Test/Tests/DataSources/List.cs +++ b/TelegramBotBase.Test/Tests/DataSources/List.cs @@ -4,7 +4,7 @@ using TelegramBotBase.Controls.Hybrid; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.DataSources; +namespace TelegramBotBase.Example.Tests.DataSources; public class List : FormBase { diff --git a/TelegramBotBase.Test/Tests/Groups/GroupChange.cs b/TelegramBotBase.Test/Tests/Groups/GroupChange.cs index fd984b6..9359998 100644 --- a/TelegramBotBase.Test/Tests/Groups/GroupChange.cs +++ b/TelegramBotBase.Test/Tests/Groups/GroupChange.cs @@ -4,7 +4,7 @@ using TelegramBotBase.Args; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Groups; +namespace TelegramBotBase.Example.Tests.Groups; public class GroupChange : GroupForm { diff --git a/TelegramBotBase.Test/Tests/Groups/LinkReplaceTest.cs b/TelegramBotBase.Test/Tests/Groups/LinkReplaceTest.cs index dd36756..69bc1ad 100644 --- a/TelegramBotBase.Test/Tests/Groups/LinkReplaceTest.cs +++ b/TelegramBotBase.Test/Tests/Groups/LinkReplaceTest.cs @@ -7,7 +7,7 @@ using Telegram.Bot.Types.Enums; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Groups; +namespace TelegramBotBase.Example.Tests.Groups; public class LinkReplaceTest : GroupForm { @@ -121,7 +121,7 @@ public class LinkReplaceTest : GroupForm if (Counter[from] >= 3) { - await e.Device.KickUser(from); + await e.Device.BanUser(from); await e.Device.Send(e.Message.From.FirstName + " " + e.Message.From.LastName + " has been removed from the group"); @@ -162,4 +162,4 @@ public class LinkReplaceTest : GroupForm return matches.Count > 0; } -} \ No newline at end of file +} diff --git a/TelegramBotBase.Test/Tests/Groups/WelcomeUser.cs b/TelegramBotBase.Test/Tests/Groups/WelcomeUser.cs index 3dc8048..6a6d09e 100644 --- a/TelegramBotBase.Test/Tests/Groups/WelcomeUser.cs +++ b/TelegramBotBase.Test/Tests/Groups/WelcomeUser.cs @@ -6,7 +6,7 @@ using TelegramBotBase.Args; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Groups; +namespace TelegramBotBase.Example.Tests.Groups; public class WelcomeUser : GroupForm { diff --git a/TelegramBotBase.Test/Tests/Menu.cs b/TelegramBotBase.Test/Tests/Menu.cs index 3b161db..740cfd7 100644 --- a/TelegramBotBase.Test/Tests/Menu.cs +++ b/TelegramBotBase.Test/Tests/Menu.cs @@ -2,12 +2,12 @@ using Telegram.Bot.Types.Enums; using TelegramBotBase.Base; using TelegramBotBase.Enums; +using TelegramBotBase.Example.Tests.Controls; +using TelegramBotBase.Example.Tests.DataSources; +using TelegramBotBase.Example.Tests.Groups; using TelegramBotBase.Form; -using TelegramBotBaseTest.Tests.Controls; -using TelegramBotBaseTest.Tests.DataSources; -using TelegramBotBaseTest.Tests.Groups; -namespace TelegramBotBaseTest.Tests; +namespace TelegramBotBase.Example.Tests; public class Menu : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Navigation/CustomController.cs b/TelegramBotBase.Test/Tests/Navigation/CustomController.cs index 28d7015..4f2a9a2 100644 --- a/TelegramBotBase.Test/Tests/Navigation/CustomController.cs +++ b/TelegramBotBase.Test/Tests/Navigation/CustomController.cs @@ -3,7 +3,7 @@ using System.Threading.Tasks; using TelegramBotBase.Form; using TelegramBotBase.Form.Navigation; -namespace TelegramBotBaseTest.Tests.Navigation; +namespace TelegramBotBase.Example.Tests.Navigation; internal class CustomController : NavigationController { diff --git a/TelegramBotBase.Test/Tests/Navigation/Form1.cs b/TelegramBotBase.Test/Tests/Navigation/Form1.cs index c000fe7..db4641f 100644 --- a/TelegramBotBase.Test/Tests/Navigation/Form1.cs +++ b/TelegramBotBase.Test/Tests/Navigation/Form1.cs @@ -4,7 +4,7 @@ using Telegram.Bot.Types; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Navigation; +namespace TelegramBotBase.Example.Tests.Navigation; public class Form1 : FormBase { diff --git a/TelegramBotBase.Test/Tests/Navigation/Start.cs b/TelegramBotBase.Test/Tests/Navigation/Start.cs index 034a653..cc53b47 100644 --- a/TelegramBotBase.Test/Tests/Navigation/Start.cs +++ b/TelegramBotBase.Test/Tests/Navigation/Start.cs @@ -3,7 +3,7 @@ using Telegram.Bot.Types; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Navigation; +namespace TelegramBotBase.Example.Tests.Navigation; public class Start : FormBase { diff --git a/TelegramBotBase.Test/Tests/Notifications/Start.cs b/TelegramBotBase.Test/Tests/Notifications/Start.cs index a04b770..a95ae74 100644 --- a/TelegramBotBase.Test/Tests/Notifications/Start.cs +++ b/TelegramBotBase.Test/Tests/Notifications/Start.cs @@ -3,7 +3,7 @@ using TelegramBotBase.Base; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Notifications; +namespace TelegramBotBase.Example.Tests.Notifications; public class Start : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/ProgressTest.cs b/TelegramBotBase.Test/Tests/ProgressTest.cs index a8dcf70..5fa059d 100644 --- a/TelegramBotBase.Test/Tests/ProgressTest.cs +++ b/TelegramBotBase.Test/Tests/ProgressTest.cs @@ -6,7 +6,7 @@ using TelegramBotBase.Controls.Inline; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests; +namespace TelegramBotBase.Example.Tests; public class ProgressTest : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Register/PerForm.cs b/TelegramBotBase.Test/Tests/Register/PerForm.cs index fde7e05..40ad4bc 100644 --- a/TelegramBotBase.Test/Tests/Register/PerForm.cs +++ b/TelegramBotBase.Test/Tests/Register/PerForm.cs @@ -2,7 +2,7 @@ using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Register; +namespace TelegramBotBase.Example.Tests.Register; public class PerForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Register/PerStep.cs b/TelegramBotBase.Test/Tests/Register/PerStep.cs index 437dbce..8249ec4 100644 --- a/TelegramBotBase.Test/Tests/Register/PerStep.cs +++ b/TelegramBotBase.Test/Tests/Register/PerStep.cs @@ -1,9 +1,9 @@ using System.Threading.Tasks; using TelegramBotBase.Base; +using TelegramBotBase.Example.Tests.Register.Steps; using TelegramBotBase.Form; -using TelegramBotBaseTest.Tests.Register.Steps; -namespace TelegramBotBaseTest.Tests.Register; +namespace TelegramBotBase.Example.Tests.Register; public class PerStep : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Register/Start.cs b/TelegramBotBase.Test/Tests/Register/Start.cs index 09b3516..8f1071c 100644 --- a/TelegramBotBase.Test/Tests/Register/Start.cs +++ b/TelegramBotBase.Test/Tests/Register/Start.cs @@ -2,7 +2,7 @@ using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Register; +namespace TelegramBotBase.Example.Tests.Register; public class Start : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Register/Steps/Data.cs b/TelegramBotBase.Test/Tests/Register/Steps/Data.cs index 63a56ff..af8c471 100644 --- a/TelegramBotBase.Test/Tests/Register/Steps/Data.cs +++ b/TelegramBotBase.Test/Tests/Register/Steps/Data.cs @@ -1,4 +1,4 @@ -namespace TelegramBotBaseTest.Tests.Register.Steps; +namespace TelegramBotBase.Example.Tests.Register.Steps; public class Data { diff --git a/TelegramBotBase.Test/Tests/Register/Steps/Step1.cs b/TelegramBotBase.Test/Tests/Register/Steps/Step1.cs index 3cf1570..13e61b6 100644 --- a/TelegramBotBase.Test/Tests/Register/Steps/Step1.cs +++ b/TelegramBotBase.Test/Tests/Register/Steps/Step1.cs @@ -3,7 +3,7 @@ using TelegramBotBase.Args; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Register.Steps; +namespace TelegramBotBase.Example.Tests.Register.Steps; public class Step1 : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Register/Steps/Step2.cs b/TelegramBotBase.Test/Tests/Register/Steps/Step2.cs index fffd190..c5a0752 100644 --- a/TelegramBotBase.Test/Tests/Register/Steps/Step2.cs +++ b/TelegramBotBase.Test/Tests/Register/Steps/Step2.cs @@ -2,7 +2,7 @@ using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Register.Steps; +namespace TelegramBotBase.Example.Tests.Register.Steps; public class Step2 : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Register/Steps/Step3.cs b/TelegramBotBase.Test/Tests/Register/Steps/Step3.cs index 45eaea8..afe5989 100644 --- a/TelegramBotBase.Test/Tests/Register/Steps/Step3.cs +++ b/TelegramBotBase.Test/Tests/Register/Steps/Step3.cs @@ -2,7 +2,7 @@ using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests.Register.Steps; +namespace TelegramBotBase.Example.Tests.Register.Steps; public class Step3 : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/SimpleForm.cs b/TelegramBotBase.Test/Tests/SimpleForm.cs index d776936..71669bf 100644 --- a/TelegramBotBase.Test/Tests/SimpleForm.cs +++ b/TelegramBotBase.Test/Tests/SimpleForm.cs @@ -4,7 +4,7 @@ using TelegramBotBase.Base; using TelegramBotBase.Enums; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests; +namespace TelegramBotBase.Example.Tests; public class SimpleForm : AutoCleanForm { diff --git a/TelegramBotBase.Test/Tests/Start.cs b/TelegramBotBase.Test/Tests/Start.cs index bbe1783..08a14d6 100644 --- a/TelegramBotBase.Test/Tests/Start.cs +++ b/TelegramBotBase.Test/Tests/Start.cs @@ -1,9 +1,9 @@ using System.Threading.Tasks; using TelegramBotBase.Base; +using TelegramBotBase.Example.Tests.Groups; using TelegramBotBase.Form; -using TelegramBotBaseTest.Tests.Groups; -namespace TelegramBotBaseTest.Tests; +namespace TelegramBotBase.Example.Tests; public class Start : SplitterForm { diff --git a/TelegramBotBase.Test/Tests/TestForm.cs b/TelegramBotBase.Test/Tests/TestForm.cs index 30cb824..d7d7873 100644 --- a/TelegramBotBase.Test/Tests/TestForm.cs +++ b/TelegramBotBase.Test/Tests/TestForm.cs @@ -3,7 +3,7 @@ using System.Threading.Tasks; using TelegramBotBase.Base; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests; +namespace TelegramBotBase.Example.Tests; public class TestForm : FormBase { diff --git a/TelegramBotBase.Test/Tests/TestForm2.cs b/TelegramBotBase.Test/Tests/TestForm2.cs index 2cff462..161fbcc 100644 --- a/TelegramBotBase.Test/Tests/TestForm2.cs +++ b/TelegramBotBase.Test/Tests/TestForm2.cs @@ -6,7 +6,7 @@ using TelegramBotBase.Base; using TelegramBotBase.Extensions.Images; using TelegramBotBase.Form; -namespace TelegramBotBaseTest.Tests; +namespace TelegramBotBase.Example.Tests; public class TestForm2 : FormBase { diff --git a/TelegramBotBase.Test/packages.config b/TelegramBotBase.Test/packages.config deleted file mode 100644 index f74d058..0000000 --- a/TelegramBotBase.Test/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/TelegramBotFramework.sln b/TelegramBotFramework.sln index 34eec3f..e79a78c 100644 --- a/TelegramBotFramework.sln +++ b/TelegramBotFramework.sln @@ -5,7 +5,7 @@ VisualStudioVersion = 17.0.31912.275 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TelegramBotBase", "TelegramBotBase\TelegramBotBase.csproj", "{0BD16FB9-7ED4-4CCB-83EB-5CEE538E1B6C}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TelegramBotBaseTest", "TelegramBotBase.Test\TelegramBotBaseTest.csproj", "{88EC0E02-583D-4B9D-956C-81D63C8CFCFA}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TelegramBotBase.Example", "TelegramBotBase.Test\TelegramBotBase.Example.csproj", "{88EC0E02-583D-4B9D-956C-81D63C8CFCFA}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3856B3FB-63E3-444A-9FF0-34171BE7AC5D}" ProjectSection(SolutionItems) = preProject