File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ FORM EmailVal|myemail
1414FORM CompactSelectVal|2
1515FORM MultiSelectVal|1;2
1616FORM IsCool
17+ BUTTON Submit
1718
1819#bot
19- You posted
20+ You posted
21+ CARDS Submit|SimpleVal
You can’t perform that action at this time.
0 commit comments