如何使用Java的Microsoft Bot Framework渲染降价?

问题描述 投票:1回答:1

我在呈现减价文字时遇到问题。它不会显示在Skype for Business中。什么都没有收到,但是如果我不写setTextFormat代码行,则会收到一个纯字符串。

Activity reply = activity.createReply("**This is a bold string**");
reply.setTextFormat(TextFormatTypes.MARKDOWN);
this.connector.getConversations()
                .sendToConversation(
                        activity.getConversation().getId(),
                        reply);

我想念什么吗?

谢谢。

编辑:与XML相同的问题。

java formatting botframework chatbot skype-for-business
1个回答
0
投票

[Skype for Business bots are deprecated,如果您不知道:

Important notice

重要

Bot Framework中的Skype for Business频道将于2019年6月30日弃用。

此后,新的漫游器将无法添加Skype for Business频道日期。现有的机器人将继续工作到2019年10月31日。Microsoft Teams是Microsoft首选的通信工具。Learn how to connect your bot to Microsoft Teams

由于无法对您的问题进行测试,因此我无法知道Skype for Business是否支持Markdown,尽管您可能有兴趣阅读此文章:Can we use Markdown with Bot Framework for Skype for Business?。可能有一些格式化消息的方法,但是即使有,您仍然应该使用其他通道。即使您不是制作机器人,也请you have less than two years left with Skype for Business,并且建议每个人都加入团队。

如果您对Bot Framework还有其他疑问,请发表一篇新文章,我们的团队很乐意为您解答。

© www.soinside.com 2019 - 2024. All rights reserved.