diff --git a/TelegramBotBase/Form/AlertDialog.cs b/TelegramBotBase/Form/AlertDialog.cs index bfbed26..5ad3e76 100644 --- a/TelegramBotBase/Form/AlertDialog.cs +++ b/TelegramBotBase/Form/AlertDialog.cs @@ -15,6 +15,14 @@ namespace TelegramBotBase.Form { public String ButtonText { get; set; } + public AlertDialog(String Message, String ButtonText) : base(Message) + { + this.Buttons.Add(new ButtonBase(ButtonText, "ok")); + this.ButtonText = ButtonText; + + } + + [Obsolete] public AlertDialog(String Message, String ButtonText, FormBase FormToOpen = null) : base(Message) { this.Buttons.Add(new ButtonBase(ButtonText, "ok")); diff --git a/TelegramBotBase/Form/ArrayPromptDialog.cs b/TelegramBotBase/Form/ArrayPromptDialog.cs index 1677281..0891a88 100644 --- a/TelegramBotBase/Form/ArrayPromptDialog.cs +++ b/TelegramBotBase/Form/ArrayPromptDialog.cs @@ -18,6 +18,7 @@ namespace TelegramBotBase.Form public ButtonBase[][] Buttons { get; set; } + [Obsolete] public Dictionary ButtonForms { get; set; } = new Dictionary(); private EventHandlerList __Events { get; set; } = new EventHandlerList(); diff --git a/TelegramBotBase/Form/PromptDialog.cs b/TelegramBotBase/Form/PromptDialog.cs index a5e7ad4..a5ee197 100644 --- a/TelegramBotBase/Form/PromptDialog.cs +++ b/TelegramBotBase/Form/PromptDialog.cs @@ -15,6 +15,7 @@ namespace TelegramBotBase.Form public List Buttons { get; set; } + [Obsolete] public Dictionary ButtonForms { get; set; } = new Dictionary(); private EventHandlerList __Events { get; set; } = new EventHandlerList();