Skip to content

Commit

Permalink
#133 - Need to add completionBotId as a member of TaskInfo (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
ydogandjiev committed Oct 1, 2018
1 parent 87ac28b commit 97e90ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/MicrosoftTeams.ts
Expand Up @@ -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;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion test/MicrosoftTeams.spec.ts
Expand Up @@ -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) => {
Expand Down

0 comments on commit 97e90ba

Please sign in to comment.