diff --git a/README.md b/README.md index b771aef..f57914a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ [![NuGet version (TelegramBotBase)](https://img.shields.io/nuget/v/TelegramBotBase.svg?style=flat-square)](https://www.nuget.org/packages/TelegramBotBase/) +Telegram Group: [https://t.me/tgbotbase] + + Hey guys, here we are. After some time and thoughts i give my TelegramBot framework to public. @@ -95,8 +98,6 @@ Go ahead, create it, initialize it and navigate to it: ``` var tf = new TestForm(); -await tf.Init(); - await this.NavigateTo(tf); ``` @@ -134,7 +135,6 @@ Below we have 3 options. case "/form1": var form1 = new TestForm(); - await form1.Init(); await en.Device.ActiveForm.NavigateTo(form1); @@ -142,7 +142,6 @@ Below we have 3 options. case "/form2": var form2 = new TestForm2(); - await form2.Init(); await en.Device.ActiveForm.NavigateTo(form2); @@ -265,8 +264,6 @@ public class ButtonTestForm : AutoCleanForm var st = new Start(); - await st.Init(); - await this.NavigateTo(st); break; diff --git a/TelegramBaseTest/App.config b/TelegramBaseTest/App.config index 88fa402..776d315 100644 --- a/TelegramBaseTest/App.config +++ b/TelegramBaseTest/App.config @@ -1,6 +1,14 @@ - + + + + + + + + + \ No newline at end of file diff --git a/TelegramBaseTest/Program.cs b/TelegramBaseTest/Program.cs index a3955b3..34ad259 100644 --- a/TelegramBaseTest/Program.cs +++ b/TelegramBaseTest/Program.cs @@ -14,7 +14,7 @@ namespace TelegramBaseTest static void Main(string[] args) { - String APIKey = " "; + String APIKey = "480896099:AAEtq_owUqRH62DR0gYc-ZWRI_TWl8El1YQ"; BotBase bb = new BotBase(APIKey); @@ -29,7 +29,6 @@ namespace TelegramBaseTest case "/form1": var form1 = new TestForm(); - await form1.Init(); await en.Device.ActiveForm.NavigateTo(form1); @@ -37,7 +36,6 @@ namespace TelegramBaseTest case "/form2": var form2 = new TestForm2(); - await form2.Init(); await en.Device.ActiveForm.NavigateTo(form2); diff --git a/TelegramBaseTest/TelegramBaseTest.csproj b/TelegramBaseTest/TelegramBaseTest.csproj index 11973e7..5385414 100644 --- a/TelegramBaseTest/TelegramBaseTest.csproj +++ b/TelegramBaseTest/TelegramBaseTest.csproj @@ -67,8 +67,12 @@ - - + + Designer + + + Designer + diff --git a/TelegramBotFramework.sln b/TelegramBotFramework.sln index 633f797..320955b 100644 --- a/TelegramBotFramework.sln +++ b/TelegramBotFramework.sln @@ -1,12 +1,17 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.168 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TelegramBaseTest", "TelegramBaseTest\TelegramBaseTest.csproj", "{5817184C-0D59-4924-AC6C-6B943967811C}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TelegramBotBase", "TelegramBotBase\TelegramBotBase.csproj", "{A61EDA27-CFDF-4BCB-B2D6-184F94904F2D}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E9AE1280-C1F3-4960-9D3D-D4F25142E838}" + ProjectSection(SolutionItems) = preProject + README.md = README.md + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -25,4 +30,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4245F162-E263-45E0-A16A-ED5F411A4AFC} + EndGlobalSection EndGlobal