Forum Discussion
ouadia
Jun 06, 2024Copper Contributor
Unable to invoke Task module in MS Teams botbuilder bot
Hi there, We are facing an issue while trying to invoke a task module in Microsoft Teams. We have create an adaptive card with a button that submit a task/fetch action. "actions": [{
"typ...
Dinesh-MSFT
Jun 07, 2024Iron Contributor
Hi ouadia - Same issue has been raised here microsoft graph api - Unable to invoke Task module in MS Teams botbuilder bot - Stack Overflow. Please follow that thread for more updates.
ouadia
Jun 11, 2024Copper Contributor
Hi Dinesh,
I've added a few comments here https://stackoverflow.com/questions/78582393/unable-to-invoke-task-module-in-ms-teams-botbuilder-bot/78590539#78590539
The code you provided does not work. I'm getting 'TaskModuleResponse' object has no attribute 'input_hint'. Is there a reason to send the response using turn_context.send_activity(response) instead of just returning the response like mentioned in this example https://github.com/microsoft/BotBuilder-Samples/blob/ce328b01cc1315d6f36ca0c9aa0d9d1cf5ad11de/archive/samples/python/54.teams-task-module/bots/teams_task_module_bot.py#L83
Even using this sample https://github.com/microsoft/BotBuilder-Samples/blob/ce328b01cc1315d6f36ca0c9aa0d9d1cf5ad11de/archive/samples/python/54.teams-task-module/bots/teams_task_module_bot.py#L83 the code doesn't work. The code doesn't trigger any error, the MSTeams client the invoke HTTP request is returning a 200 response without any body.
Please advice,
Thank you so much,
Ouadia
I've added a few comments here https://stackoverflow.com/questions/78582393/unable-to-invoke-task-module-in-ms-teams-botbuilder-bot/78590539#78590539
The code you provided does not work. I'm getting 'TaskModuleResponse' object has no attribute 'input_hint'. Is there a reason to send the response using turn_context.send_activity(response) instead of just returning the response like mentioned in this example https://github.com/microsoft/BotBuilder-Samples/blob/ce328b01cc1315d6f36ca0c9aa0d9d1cf5ad11de/archive/samples/python/54.teams-task-module/bots/teams_task_module_bot.py#L83
Even using this sample https://github.com/microsoft/BotBuilder-Samples/blob/ce328b01cc1315d6f36ca0c9aa0d9d1cf5ad11de/archive/samples/python/54.teams-task-module/bots/teams_task_module_bot.py#L83 the code doesn't work. The code doesn't trigger any error, the MSTeams client the invoke HTTP request is returning a 200 response without any body.
Please advice,
Thank you so much,
Ouadia