fill_postback

This commit is contained in:
Haiping Chen 2024-03-18 07:54:19 -05:00
parent 6491d36db4
commit 9ab182a823
2 changed files with 7 additions and 0 deletions

View file

@ -10,6 +10,12 @@ public class RichContent<T> where T : IRichMessage
public string MessagingType => "RESPONSE";
public T Message { get; set; }
/// <summary>
/// If true, UI component will populate the replyMessage when sending back user message.
/// </summary>
[JsonPropertyName("fill_postback")]
public bool FillPostback { get; set; }
public RichContent()
{

View file

@ -34,6 +34,7 @@ public class GetPizzaTypesFn : IFunctionCallback
{
Id = states.GetConversationId()
},
FillPostback = true,
Message = new ButtonTemplateMessage
{
Text = "Please select a pizza type",