- Cleanup of unecessary init calls

- added form1/form2 option to start menu in test project
- added example for different forms with and without event handlers
- added form examples to Readme.md
This commit is contained in:
FlorianDahn
2019-03-20 17:42:33 +07:00
parent 19f3c9c195
commit 211bc55aff
10 changed files with 127 additions and 21 deletions
-2
View File
@@ -50,7 +50,6 @@ namespace TelegramBotBase.Form
await message.DeleteMessage();
ButtonBase button = this.Buttons.FirstOrDefault(a => a.Value == call.Value);
if (button == null)
@@ -73,7 +72,6 @@ namespace TelegramBotBase.Form
{
ButtonForm btn = new ButtonForm();
var buttons = this.Buttons.Select(a => new ButtonBase(a.Text, CallbackData.Create("action", a.Value))).ToList();
btn.AddButtonRow(buttons);