Closed shubham-betterworks closed 2 years ago
Hi shubham-betterworks! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.
Best regards, Teams Platform
Hello @shubham-betterworks - Hope you are preparing and returning proper Task Module response like below:
Submit handler response:
Please refer below sample code: https://github.com/microsoft/BotBuilder-Samples/blob/main/samples/javascript_nodejs/54.teams-task-module/bots/teamsTaskModuleBot.js
Hi @ChetanSharma-msft, yes I'm returning a proper TaskModule response
To reproduce the issue you can just change the return statement in handleTeamsTaskModuleFetch
to return TaskModuleResponseFactory.toTaskModuleResponse('invoke message');
and try invoking the TaskModule from the bot. It will result in an empty Task Module.
Hello @shubham-betterworks - Task modules permit you to create modal pop-up experiences in your Teams application. In the pop-up, you can:
We don't have any direct way to just send a text message without custom HTML/JavaScript code..
Reference doc: https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules
@ChetanSharma-msft just to clarify we can send {task: {type: "message", value: "String message"}}
kind of TaskModule response to task/submit
but not to task/fetch
activity type?
@shubham-betterworks - Yes correct, it is mentioned in the documentation: https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots?tabs=nodejs#the-flexibility-of-tasksubmit
@shubham-betterworks - Please let us know if you have any other query or shall we close this issue ?
Hi shubham-betterworks! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform.
Best regards, Teams Platform
Response for /invoke API with activity type "task/fetch"
https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots?tabs=nodejs