如何创建自定义 PromptDialog 成员函数?

How do I create a custom PromptDialog member function?

我尝试使用以下成员函数进行自定义 class

{[Serializable]
public class CustomPromptDialog : PromptDialog
{
    public static void Text(IDialogContext context, ResumeAfter<string> resume, IMessageActivity prompt)
    {
        context.PostAsync(prompt);
    }
}}

我这样做是因为我想提示用户快速回复 Facebook 的选项。我无法使用 PromptDialog.Text(context, Query, prompt); 执行此操作,因为此方法仅接受 sting

类型的提示

您必须覆盖您的提示样式。检查 this .