You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using api https://graph.microsoft.com/v1.0/teams/myteamid/channels/mychannelid/messages to post a message with adaptive card attached on behalf user right.
const url =
https://graph.microsoft.com/v1.0/teams/myteamid/channels/mychannel/messages
const card = {
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "messageBack Button"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"actions": [
}
const payload = {
"subject": null,
"body": {
"contentType": "html",
"content": "<attachment id="idfortest">"
},
"attachments": [{
"id": "idfortest",
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": JSON.stringify(card),
"name": null,
"thumbnailUrl": null
}]
}
Card is well displayed in team channel but when i click on button messageBack nothing happens !
How can I receive answer message ?
note: imBack and openUrl is working
Beta Was this translation helpful? Give feedback.
All reactions