diff --git a/Telegrator.ConsoleHost.Web/Program.cs b/Telegrator.ConsoleHost.Web/Program.cs deleted file mode 100644 index 3b67d23..0000000 --- a/Telegrator.ConsoleHost.Web/Program.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Telegrator.Hosting; -using Telegrator.Hosting.Web; - -namespace Telegrator.ConsoleHost.Web -{ - public class Program - { - public static void Main(string[] args) - { - TelegramBotWebHostBuilder builder = TelegramBotWebHost.CreateBuilder(new TelegramBotWebOptions() - { - Args = args, - WebhookUri = "https://telegrator-hooker.cloudpub.ru/bot", - DescendDescriptorIndex = false, - ExceptIntersectingCommandAliases = true, - }); - - builder.Handlers.CollectHandlersAssemblyWide(); - - TelegramBotWebHost telegramBot = builder.Build(); - telegramBot.SetBotCommands(); - telegramBot.Run(); - } - } -} diff --git a/Telegrator.ConsoleHost.Web/Properties/launchSettings.json b/Telegrator.ConsoleHost.Web/Properties/launchSettings.json deleted file mode 100644 index f4d95e9..0000000 --- a/Telegrator.ConsoleHost.Web/Properties/launchSettings.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "profiles": { - "http": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "dotnetRunMessages": true, - "applicationUrl": "http://localhost:5284" - }, - "https": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "dotnetRunMessages": true, - "applicationUrl": "https://localhost:8080" - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - }, - "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:12266", - "sslPort": 44308 - } - } -} \ No newline at end of file diff --git a/Telegrator.ConsoleHost.Web/Telegrator.ConsoleHost.Web.csproj b/Telegrator.ConsoleHost.Web/Telegrator.ConsoleHost.Web.csproj deleted file mode 100644 index fd9af14..0000000 --- a/Telegrator.ConsoleHost.Web/Telegrator.ConsoleHost.Web.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - net8.0 - enable - enable - - - - - - - diff --git a/Telegrator.ConsoleHost.Web/appsettings.Development.json b/Telegrator.ConsoleHost.Web/appsettings.Development.json deleted file mode 100644 index 0c208ae..0000000 --- a/Telegrator.ConsoleHost.Web/appsettings.Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} diff --git a/Telegrator.ConsoleHost.Web/appsettings.json b/Telegrator.ConsoleHost.Web/appsettings.json deleted file mode 100644 index e1dc924..0000000 --- a/Telegrator.ConsoleHost.Web/appsettings.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - - "TelegramBotClientOptions": { - "Token": "7625502724:AAE5QPuX5P_lk2HwV4kdE6guoM6nsFQbe-c" - }, - - "TelegramBotOptions": { - "ExecuteOnlyFirstFoundHanlder": true, - "MaximumParallelWorkingHandlers": null - }, - - "HostOptions": { - "ShutdownTimeout": 10, - "BackgroundServiceExceptionBehavior": "StopHost" - }, - - "Shapes": { - "Token": "AX5IHZHSZMGQVEC6TILCOFLALPQRDDUWEBT8UYPH0OW" - }, - - "AllowedHosts": "*" -} \ No newline at end of file diff --git a/Telegrator.sln b/Telegrator.sln index 60116a7..f9bed94 100644 --- a/Telegrator.sln +++ b/Telegrator.sln @@ -18,12 +18,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Telegrator.Analyzers", "Telegrator.Analyzers\Telegrator.Analyzers.csproj", "{8B6A32EA-ECF7-4CAB-A1E5-2392063C986D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Telegrator.ConsoleHost", "..\Telegram.Reactive.TestApps\Telegrator.ConsoleHost\Telegrator.ConsoleHost.csproj", "{78691EF7-6009-3BB1-C90D-1D1D95442041}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Telegrator.Hosting.Web", "Telegrator.Hosting.Web\Telegrator.Hosting.Web.csproj", "{98AB490F-6A36-CCFF-F6E6-B029D1665965}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Telegrator.ConsoleHost.Web", "Telegrator.ConsoleHost.Web\Telegrator.ConsoleHost.Web.csproj", "{C18E1844-64A7-4FF8-BDB9-24F8FBFC5CF6}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution AnalyzersDebug|Any CPU = AnalyzersDebug|Any CPU @@ -61,24 +57,12 @@ Global {8B6A32EA-ECF7-4CAB-A1E5-2392063C986D}.Debug|Any CPU.Build.0 = Debug|Any CPU {8B6A32EA-ECF7-4CAB-A1E5-2392063C986D}.Release|Any CPU.ActiveCfg = Release|Any CPU {8B6A32EA-ECF7-4CAB-A1E5-2392063C986D}.Release|Any CPU.Build.0 = Release|Any CPU - {78691EF7-6009-3BB1-C90D-1D1D95442041}.AnalyzersDebug|Any CPU.ActiveCfg = AnalyzersDebug|Any CPU - {78691EF7-6009-3BB1-C90D-1D1D95442041}.AnalyzersDebug|Any CPU.Build.0 = AnalyzersDebug|Any CPU - {78691EF7-6009-3BB1-C90D-1D1D95442041}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {78691EF7-6009-3BB1-C90D-1D1D95442041}.Debug|Any CPU.Build.0 = Debug|Any CPU - {78691EF7-6009-3BB1-C90D-1D1D95442041}.Release|Any CPU.ActiveCfg = Release|Any CPU - {78691EF7-6009-3BB1-C90D-1D1D95442041}.Release|Any CPU.Build.0 = Release|Any CPU {98AB490F-6A36-CCFF-F6E6-B029D1665965}.AnalyzersDebug|Any CPU.ActiveCfg = Release|Any CPU {98AB490F-6A36-CCFF-F6E6-B029D1665965}.AnalyzersDebug|Any CPU.Build.0 = Release|Any CPU {98AB490F-6A36-CCFF-F6E6-B029D1665965}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {98AB490F-6A36-CCFF-F6E6-B029D1665965}.Debug|Any CPU.Build.0 = Debug|Any CPU {98AB490F-6A36-CCFF-F6E6-B029D1665965}.Release|Any CPU.ActiveCfg = Release|Any CPU {98AB490F-6A36-CCFF-F6E6-B029D1665965}.Release|Any CPU.Build.0 = Release|Any CPU - {C18E1844-64A7-4FF8-BDB9-24F8FBFC5CF6}.AnalyzersDebug|Any CPU.ActiveCfg = Release|Any CPU - {C18E1844-64A7-4FF8-BDB9-24F8FBFC5CF6}.AnalyzersDebug|Any CPU.Build.0 = Release|Any CPU - {C18E1844-64A7-4FF8-BDB9-24F8FBFC5CF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C18E1844-64A7-4FF8-BDB9-24F8FBFC5CF6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C18E1844-64A7-4FF8-BDB9-24F8FBFC5CF6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C18E1844-64A7-4FF8-BDB9-24F8FBFC5CF6}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE