microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
core/test/Microsoft.Teams.Apps.BotBuilder.UnitTests/TestData/AdaptiveCardActivity.json
75lines · modecode
| 1 | { |
| 2 | "type": "message", |
| 3 | "isTargeted": false, |
| 4 | "serviceUrl": "https://smba.trafficmanager.net/amer/1a2b3c4d-5e6f-4789-a0b1-c2d3e4f5a6b7/", |
| 5 | "channelId": "msteams", |
| 6 | "from": { |
| 7 | "id": "28:b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e", |
| 8 | "name": "testbot-local" |
| 9 | }, |
| 10 | "conversation": { |
| 11 | "conversationType": "personal", |
| 12 | "id": "a:1AbCdEfGhIjKlMnOpQrStUvWxYz2AbCdEfGhIjKlMnOpQrStUvWxYz3AbCdEfGhIjKlMnOpQrStUvWxYz4AbCdEfGhIjKlMnOpQrStUvWxYz5AbCdEf", |
| 13 | "tenantId": "1a2b3c4d-5e6f-4789-a0b1-c2d3e4f5a6b7" |
| 14 | }, |
| 15 | "recipient": { |
| 16 | "id": "29:9xYzAbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIjKlMnOpQrStUvWxYzAb", |
| 17 | "name": "Test User", |
| 18 | "aadObjectId": "7f8e9d0c-1b2a-4354-6758-9a0b1c2d3e4f" |
| 19 | }, |
| 20 | "attachmentLayout": "list", |
| 21 | "locale": "en-US", |
| 22 | "inputHint": "acceptingInput", |
| 23 | "attachments": [ |
| 24 | { |
| 25 | "contentType": "application/vnd.microsoft.card.adaptive", |
| 26 | "content": { |
| 27 | "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", |
| 28 | "type": "AdaptiveCard", |
| 29 | "version": "1.5", |
| 30 | "speak": "This card mentions a user by User Principle Name: Hello Test User", |
| 31 | "body": [ |
| 32 | { |
| 33 | "type": "TextBlock", |
| 34 | "text": "Mention a user by User Principle Name: Hello <at>Test User UPN</at>" |
| 35 | }, |
| 36 | { |
| 37 | "type": "TextBlock", |
| 38 | "text": "Mention a user by AAD Object Id: Hello <at>Test User AAD</at>" |
| 39 | } |
| 40 | ], |
| 41 | "msteams": { |
| 42 | "entities": [ |
| 43 | { |
| 44 | "type": "mention", |
| 45 | "text": "<at>Test User UPN</at>", |
| 46 | "mentioned": { |
| 47 | "id": "testuser@example.onmicrosoft.com", |
| 48 | "name": "Test User" |
| 49 | } |
| 50 | }, |
| 51 | { |
| 52 | "type": "mention", |
| 53 | "text": "<at>Test User AAD</at>", |
| 54 | "mentioned": { |
| 55 | "id": "7f8e9d0c-1b2a-4354-6758-9a0b1c2d3e4f", |
| 56 | "name": "Test User" |
| 57 | } |
| 58 | } |
| 59 | ] |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | ], |
| 64 | "entities": [ |
| 65 | { |
| 66 | "type": "https://schema.org/Message", |
| 67 | "@context": "https://schema.org", |
| 68 | "@type": "Message", |
| 69 | "additionalType": [ |
| 70 | "AIGeneratedContent" |
| 71 | ] |
| 72 | } |
| 73 | ], |
| 74 | "replyToId": "f:a1b2c3d4-e5f6-4789-a0b1-c2d3e4f5a6b7" |
| 75 | } |
| 76 | |