From 3c21af8f68b9b3813b93fdc954e53e987141c6ad Mon Sep 17 00:00:00 2001 From: FlorianDahn Date: Thu, 26 Sep 2019 20:57:16 +0200 Subject: [PATCH] - small change and adding comments --- TelegramBotBase/Form/ButtonBase.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/TelegramBotBase/Form/ButtonBase.cs b/TelegramBotBase/Form/ButtonBase.cs index 303a9d1..26e656c 100644 --- a/TelegramBotBase/Form/ButtonBase.cs +++ b/TelegramBotBase/Form/ButtonBase.cs @@ -31,6 +31,11 @@ namespace TelegramBotBase.Form } + /// + /// Returns an inline Button + /// + /// + /// public InlineKeyboardButton ToInlineButton(ButtonForm form) { String id = (form.DependencyControl != null ? form.DependencyControl.ControlID + "_" : ""); @@ -48,9 +53,14 @@ namespace TelegramBotBase.Form } + + /// + /// Returns a KeyBoardButton + /// + /// + /// public KeyboardButton ToKeyboardButton(ButtonForm form) { - //String id = (form.DependencyControl != null ? form.DependencyControl.ControlID + "_" : ""); if (this.Url == null) { return new KeyboardButton(this.Text);