microsoft / BotBuilder-Samples

Welcome to the Bot Framework samples repository. Here you will find task-focused samples in C#, JavaScript/TypeScript, and Python to help you get started with the Bot Framework SDK!
https://github.com/Microsoft/botframework
MIT License
4.34k stars 4.86k forks source link

[TaskModule][BotFrameworkV4][.Net]How to show an Adaptive card in Task Module in OnTurnAsync(); #2153

Closed Chekrii closed 4 years ago

Chekrii commented 4 years ago

Hello,

I am displaying an adaptive card with button of submit - "data":{"msteams":{"type":"task/fetch"}", On click on this Task module is getting pop up but I am not able to return another adaptive card on it. I can return by using "Task OnTeamsTaskModuleFetchAsync()" method.

Is there any way that I can return adaptive card to task module by using OnturnAsync(),

If I use OnturnAsync(), debugger is not going through OnTeamsTaskModuleFetchAsync(),

please help Thanks

HiltonGiesenow commented 4 years ago

Worth mentioning that this is also asked on SO at https://stackoverflow.com/questions/59908265/how-to-respond-to-task-fetch-in-onturnasync-in-bot-framework-v4/59912089#59912089

anusharr commented 4 years ago

@Chekrii I see @HiltonGiesenow has already answered your question on Stack Overflow which has been accepted. The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow. The official Bot Framework Github repos are the preferred platform for submitting bug fixes and feature requests.