我正在尝试使用Bot Builder Framework发送包含在链接中的一些措辞。我的代码如下:
builder.DialogAction.send({
text: 'Terms & Conditions',
attachments: [
{
contentType: 'text/html',
contentUrl: 'https://www.mycompany.com/termsandconditions',
name: 'Terms & Conditions'
}
]
})(session);
这似乎适用于其他mime contentTypes,如.png和.json。但我不确定为什么这不允许可点击的链接。
答案 0 :(得分:0)
要发送带有URL的文本消息,不需要特殊配置,只需将URL作为纯文本发送即可。例如:g = graph_tool.Graph(directed = False)
g.add_vertex(len(X))
edge_weights = g.new_edge_property('double')
for i in range(X.shape[0]):
for j in range(X.shape[1]):
if i > j and X[i,j] != 0:
e = g.add_edge(i, j)
edge_weights[e] = X[i,j]
graph_draw(g, vertex_text=g.vertex_index, vertex_font_size=18, output_size=(200, 200), output="two-nodes.png")
。