Reputation: 349
I'm invoking a task module in Teams tabs on click of a button, but while closing the Task module it giving me below error.
I'm using bot framework v3.
Upvotes: 0
Views: 346
Reputation: 10804
This is actually by design - it's not really an "error", but this is how the Task Module tells the calling tab that it's been closed directly by the user (e.g. by the user clicking the "x" to close or hitting the Escape key).
You can check for that scenario directly in your code - the Result being null, and the error being "User cancelled/closed the task module." to know that this is what the user has done. See here in the docs where it's listed directly.
Upvotes: 1