我不确定如何处理丰富的内容.我想要返回的一些示例是超链接列表或/某些图像缩略图.我该怎么做呢?我尝试将我的文本格式化为HTML并且崩溃了Bot Emulator并导致Web Chat客户端只显示编码的HTML.
这个或一些文件解释这个有秘密吗?
小智 11
降价.Bot Framework将Markdown转换为每个频道的丰富本机格式.
有些频道通过ChannelData字段支持更丰富的内容(例如,您可以通过ChannelData字段中的Slack频道发送Slack Cards)但是如果您发送Markdown,我们所有的频道都会为该频道做正确的事情.
编辑:docs:http://docs.botframework.com/connector/message-content/#the-text-property-is-markdown
你可能会发现github的链接很有帮助:
https://guides.github.com/features/mastering-markdown/
Style Markdown Description Example
Bold **text** make the text bold
Italic *text* make the text italic
Header1-5 # H1 Mark a line as a header
Strikethrough ~~text~~ make the text strikethrough
Hr --- insert a horizontal rule
Unordered list * Make an unordered list item
Ordered list 1. Make an ordered list item starting at 1
Pre `text` Preformatted text(can be inline)
Block quote > text quote a section of text
link [bing](http://bing.com)
image link 
Run Code Online (Sandbox Code Playgroud)
请注意,渠道将根据他们支持的降价子集而有所不同.
| 归档时间: |
|
| 查看次数: |
5605 次 |
| 最近记录: |