Переработанная версия ядра
All checks were successful
CI / build-test (push) Successful in 42s

This commit is contained in:
2025-12-05 12:57:05 +03:00
parent ee175a35a0
commit d817417a69
81 changed files with 2335 additions and 1453 deletions

View File

@@ -0,0 +1,36 @@
namespace BotPages.Core.Messaging;
/// <summary>
/// Кнопки снизу чата
/// </summary>
public class ReplyButton
{
/// <summary>
/// Подпись на кнопке
/// </summary>
public string Label { get; private set; }
/// <inheritdoc/>
public ReplyButton(string label)
{
this.Label = label;
}
/// <inheritdoc/>
public ReplyButton(Enum value)
{
this.Label = value.GetButtonLabel();
}
/// <summary>
/// Преобразование строки к кнопке.
/// </summary>
/// <param name="str"></param>
public static implicit operator ReplyButton(string str) => new ReplyButton(str);
/// <summary>
/// Преобразование enum к кнопке.
/// </summary>
/// <param name="en"></param>
public static implicit operator ReplyButton(Enum en) => new ReplyButton(en);
}