BotSharp/src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/TextMessage.cs

15 lines
330 B
C#
Raw Normal View History

2023-11-08 22:27:42 +00:00
namespace BotSharp.Abstraction.Messaging.Models.RichContent;
public class TextMessage : IRichMessage
{
2023-12-18 22:38:12 +00:00
[JsonPropertyName("rich_type")]
2024-02-24 21:17:37 +00:00
public string RichType => RichTypeEnum.Text;
2023-12-18 22:38:12 +00:00
2024-05-08 02:14:01 +00:00
[Translate]
public string Text { get; set; } = string.Empty;
2023-11-24 23:26:33 +00:00
public TextMessage(string text)
{
Text = text;
}
}