diff --git a/src/MicrosoftTeams.ts b/src/MicrosoftTeams.ts index 09da014560..1fffd416e0 100644 --- a/src/MicrosoftTeams.ts +++ b/src/MicrosoftTeams.ts @@ -2079,6 +2079,13 @@ namespace microsoftTeams { * If client doesnt support the URL, the URL that needs to be opened in the browser. */ fallbackUrl?: string; + + /** + * Specifies a bot ID to send the result of the user's interaction with the task module. + * If specified, the bot will receive a task/complete invoke event with a JSON object + * in the event payload. + */ + completionBotId?: string; } /** diff --git a/test/MicrosoftTeams.spec.ts b/test/MicrosoftTeams.spec.ts index 2aacac64aa..1a08250ec1 100644 --- a/test/MicrosoftTeams.spec.ts +++ b/test/MicrosoftTeams.spec.ts @@ -1441,7 +1441,8 @@ describe("MicrosoftTeams", () => { height: microsoftTeams.TaskModuleDimension.Large, width: microsoftTeams.TaskModuleDimension.Large, title: "someTitle", - url: "someUrl" + url: "someUrl", + completionBotId: "someCompletionBotId" }; microsoftTeams.tasks.startTask(taskInfo, (err, result) => {