是否可以从 bot 框架在 skype 中显示 table?
Is it possible to display a table in skype from bot framework?
我正在使用 MS 机器人框架构建聊天机器人,我发现机器人显示的文本默认被解释为降价。
这是降价:
#### Chris Butler Ltd
* A Point
* A Point
|Name|Value|
|---|---:|
|Status|Active|
|Balance|£0.00|
|Credit Limit|£0.00|
|Available Credit|£0.00|
模拟器完美显示降价table
在Skype中查看时:
看到skype竟然加了一些连字符(-),我很惊讶!
有谁知道如何显示 table 以便 Skype 将其理解为 table?
你显示的其实是skype如何解读markdown tables:
https://docs.botframework.com/en-us/channel-inspector/channels/Skype?f=Markdown&e=example1
Tables: If you are communicating with a channel which supports fixed
width fonts or HTML you can use standard table markdown, but because
many channels (such as SMS) do not have a known display width and/or
have variable width fonts it is not possible to render a table
properly on all channels.
所以,回答你的问题:
Does anyone know how to display the table so that skype understands
it as a table?
您的信息是正确的,Skype 已经将其解释为 table。 Skype 在这方面做得不是很好。
相关说明:回复对象上还有一个 TextFormat 属性,可以设置为 xml(仅限 Skype),请参阅此处:https://docs.botframework.com/en-us/csharp/builder/sdkreference/activities.html#textformat 这不会修复table 您遇到的任何一个问题,但可能会提供更多选项。
我正在使用 MS 机器人框架构建聊天机器人,我发现机器人显示的文本默认被解释为降价。
这是降价:
#### Chris Butler Ltd
* A Point
* A Point
|Name|Value|
|---|---:|
|Status|Active|
|Balance|£0.00|
|Credit Limit|£0.00|
|Available Credit|£0.00|
模拟器完美显示降价table
在Skype中查看时:
看到skype竟然加了一些连字符(-),我很惊讶!
有谁知道如何显示 table 以便 Skype 将其理解为 table?
你显示的其实是skype如何解读markdown tables: https://docs.botframework.com/en-us/channel-inspector/channels/Skype?f=Markdown&e=example1
Tables: If you are communicating with a channel which supports fixed width fonts or HTML you can use standard table markdown, but because many channels (such as SMS) do not have a known display width and/or have variable width fonts it is not possible to render a table properly on all channels.
所以,回答你的问题:
Does anyone know how to display the table so that skype understands it as a table?
您的信息是正确的,Skype 已经将其解释为 table。 Skype 在这方面做得不是很好。
相关说明:回复对象上还有一个 TextFormat 属性,可以设置为 xml(仅限 Skype),请参阅此处:https://docs.botframework.com/en-us/csharp/builder/sdkreference/activities.html#textformat 这不会修复table 您遇到的任何一个问题,但可能会提供更多选项。