BotSharp/src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/TextMessage.cs
2024-04-18 13:54:43 -05:00

18 lines
414 B
C#

using BotSharp.Abstraction.Messaging.Enums;
using Newtonsoft.Json;
namespace BotSharp.Abstraction.Messaging.Models.RichContent;
public class TextMessage : IRichMessage
{
[JsonPropertyName("rich_type")]
[JsonProperty("rich_type")]
public string RichType => RichTypeEnum.Text;
public string Text { get; set; } = string.Empty;
public TextMessage(string text)
{
Text = text;
}
}