Change output field name.

This commit is contained in:
Haiping Chen 2023-11-03 10:46:29 -05:00
parent febd731f57
commit da4d5e548a
2 changed files with 2 additions and 0 deletions

View file

@ -2,6 +2,7 @@ namespace BotSharp.Abstraction.Instructs.Models;
public class InstructResult : ITrackableMessage
{
[JsonPropertyName("message_id")]
public string MessageId { get; set; }
public string Text { get; set; }
public object Data { get; set; }

View file

@ -18,5 +18,6 @@ public class MessageResponseModel : InstructResult
/// Rich message for UI rendering
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("rich_content")]
public object? RichContent { get; set; }
}