How to get Activity Info from an IDialogContext

后端 未结 1 1093
甜味超标
甜味超标 2021-01-02 12:23

I\'m using a LuisDialog and all I get the the callback returns is an IDialogContext and the LuisResult. Is there a way I can get info from the original Activity, like channe

相关标签:
1条回答
  • 2021-01-02 12:44

    Since the v3.2.0 release you can access the original incoming message from the intent handlers. Check here to understand how your intent handler should looks like.

    public async Task MyHandler(IDialogContext context, IAwaitable<IMessageActivity> activity, LuisResult result)
    

    Alternatively, you can use context.MakeMessage but I would recommend updating your intent handlers.

    0 讨论(0)
提交回复
热议问题