How to forward result of Prompt.Choice() to current dialog?

后端 未结 2 1802
梦谈多话
梦谈多话 2021-01-22 06:11

I\'m using PromptDialog.Choice() to present different options to my users. The number of attempts is set to 0, so if they type in anything that is not a valid optio

2条回答
  •  不要未来只要你来
    2021-01-22 06:50

    I think that calling MessageReceivedAsync will be the way to go here. The key is to pass an IAwaitable from the activity you are creating.

    The code should be like:

    await MessageReceivedAsync(context, Awaitable.FromItem(yourActivity));
    

提交回复
热议问题