Closed ashwinvc closed 2 years ago
@stevkan @ramfattah can you pls help looking into this as it'll unblock our customers building JS bots
Hello @ashwinvc, we are investigating.
Hi @ashwinvc
looks like the adaptiveCard/action
type of invoke is already checked in the base class /activityHandler /, in method onInvokeActivity.
Perhaps the customer could use ActivityHandler to return an invoke response; example using ActivityHandler.onAdaptiveCardInvoke
?
Update: In .NET SDK, the handleAdaptiveCardAction method is not available in TeamsActivityHandler class. Only in JS SDK.
Sure thing. Will work with the ActivityHandler methods. But wouldnt it be easier to add the changes mentioned in the description, since it enables for ease to work with! @ramfattah
Versions
SDK Version: 4.15.0 NodeJS Version: 12.18.3 Browser Version: Chrome OS: Windows 11
Describe the bug
While writing a JS Bot for Teams, we would be over-riding the
handleAdaptiveCardAction
method inside thebotbuilder/src/teamsActivityHandler.ts
file foradaptiveCard/action
invokes. However this type of invoke is not being returned in theonInvokeActivity
method of the same file and this is affecting the ability to handle such invokes in the latest bots being developed.Expected behavior
Would need the
adaptiveCard/action
type of invoke to return an invoke response using the above method.Screenshots
The following are the requested changes to help override the existing methods: