namespace BotPages.Core.Messaging; /// /// Кнопки под сообщением /// public class InlineButton { /// /// Подпись на кнопке /// public string Label { get; private set; } /// /// Значение кнопки /// public string Value { get; private set; } /// public InlineButton(string label, string value) { this.Label = label; this.Value = value; } /// /// Стиль кнопки. /// public ButtonStyle Style { get; set; } = ButtonStyle.Default; /// public InlineButton(Enum value) { this.Label = value.GetButtonLabel(); this.Value = value.GetButtonValue(); } /// /// Преобразование enum к кнопке. /// /// public static implicit operator InlineButton(Enum en) => new InlineButton(en); }