Skip to content

Commit 2d6e072

Browse files
author
Botium
authored
Merge pull request #42 from codeforequity-at/develop
Release 0.0.20
2 parents 5e9d2c4 + 9d05f1f commit 2d6e072

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,23 @@ class BotiumConnectorDirectline3 {
197197
media: a.content.images && a.content.images.length > 1 && a.content.images.slice(1).map(mapImage),
198198
sourceData: a
199199
})
200+
} else if (a.contentType === 'text/markdown') {
201+
botMsg.cards.push({
202+
content: a.content,
203+
sourceData: {
204+
type: 'AdaptiveCard',
205+
body: [
206+
{
207+
type: 'TextBlock',
208+
text: a.content
209+
}
210+
]
211+
}
212+
})
213+
} else if (a.contentType === 'text/plain') {
214+
botMsg.cards.push({
215+
content: a.content
216+
})
200217
} else if (a.contentType && a.contentUrl) {
201218
botMsg.media.push({
202219
mediaUri: a.contentUrl,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "botium-connector-directline3",
3-
"version": "0.0.19",
3+
"version": "0.0.20",
44
"description": "Botium Connector for Bot Framework Direct Line 3 API",
55
"main": "dist/botium-connector-directline3-cjs.js",
66
"module": "dist/botium-connector-directline3-es.js",

samples/convo/spec/convo/form.convo.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ FORM EmailVal|myemail
1414
FORM CompactSelectVal|2
1515
FORM MultiSelectVal|1;2
1616
FORM IsCool
17+
BUTTON Submit
1718

1819
#bot
19-
You posted
20+
You posted
21+
CARDS Submit|SimpleVal

0 commit comments

Comments
 (0)