2023-11-08 22:27:42 +00:00
|
|
|
namespace BotSharp.Abstraction.Messaging.Models.RichContent;
|
|
|
|
|
|
2023-11-27 22:23:41 +00:00
|
|
|
public class TextMessage : IRichMessage
|
2023-10-27 19:05:18 +00:00
|
|
|
{
|
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]
|
2023-11-27 22:23:41 +00:00
|
|
|
public string Text { get; set; } = string.Empty;
|
2023-11-24 23:26:33 +00:00
|
|
|
|
|
|
|
|
public TextMessage(string text)
|
|
|
|
|
{
|
|
|
|
|
Text = text;
|
|
|
|
|
}
|
2023-10-27 19:05:18 +00:00
|
|
|
}
|