Search code examples
botframeworkbotsmicrosoft-teams

OnTeamsTaskModuleFetchAsync signature change between 4.6 and 4.7.2


Bot builder 4.6 had protected virtual Task OnTeamsTaskModuleFetchAsync(ITurnContext turnContext, TaskModuleRequest taskModuleRequest, CancellationToken cancellationToken);

but bot builder 4.7.2 doesn't have this. Any specific reason? We want to return a task module iframe when someone clicks view details button on adaptive card. How can we do that using 4.7.2?


Solution

  • Found the answer

    new TaskModuleResponse
    {
        Task = new TaskModuleContinueResponse
        {
            Value = new TaskModuleTaskInfo()
            {
                Height = TaskModuleHeight,
                Width = TaskModuleWidth,
                Title = PageTitle,
                Url = PageURI,
            },
        },
    };