17 lines
360 B
C#
17 lines
360 B
C#
namespace BotSharp.Abstraction.Messaging.Models.RichContent;
|
|
|
|
public class TextMessage : IRichMessage
|
|
{
|
|
[JsonPropertyName("rich_type")]
|
|
public string RichType => RichTypeEnum.Text;
|
|
|
|
[Translate]
|
|
public string Text { get; set; } = string.Empty;
|
|
|
|
public TextMessage() { }
|
|
|
|
public TextMessage(string text)
|
|
{
|
|
Text = text;
|
|
}
|
|
} |