Renaming label control

This commit is contained in:
Florian Zevedei 2023-09-13 14:51:13 +02:00
parent f99c8ef14c
commit edaa082e93

View File

@ -12,7 +12,7 @@ using TelegramBotBase.Localizations;
namespace TelegramBotBase.Controls.Inline; namespace TelegramBotBase.Controls.Inline;
[DebuggerDisplay("{Text}")] [DebuggerDisplay("{Text}")]
public class LabelControl : ControlBase public class Label : ControlBase
{ {
private bool _renderNecessary = true; private bool _renderNecessary = true;
@ -52,16 +52,16 @@ public class LabelControl : ControlBase
} }
public LabelControl() public Label()
{ {
} }
public LabelControl(string text) public Label(string text)
{ {
_text = text; _text = text;
} }
public LabelControl(string text, ParseMode parseMode) public Label(string text, ParseMode parseMode)
{ {
_text = text; _text = text;
_parseMode = parseMode; _parseMode = parseMode;