I need help with handle of Actions.Submit (button) in MS Teams..
If we pass "data": "message", we will get a standard dialog. If you test it in the emulator, everything works fine.
Thanks.
My AdaptiveCard:
"actions": [
{
"type": "Action.Submit",
"title": "p3",
"data": {
"text": "p3"
}
},
{
"type": "Action.Submit",
"title": "Помощь",
"data": "p3"
}
I need when clicking on any button to send a specific message
It is MS Teams bug. I report this.
This is how I did it, to make it work for Microsoft teams. Else for the emulator, you simply pass a string in Data.
dynamic dataObject = new JObject();
dataObject.msteams = new JObject();
dataObject.msteams.type = "imBack";
dataObject.msteams.value = intent.Value;
var actionSubmit = new AdaptiveSubmitAction(){
Title = intent.Value,
Data = turnContext.Activity.ChannelId != "emulator" ? dataObject : intent.Value
};
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.