2017-06-16 43 views
0

我想發送一些措辭包裝在一個鏈接使用Bot Builder框架。我的代碼如下:博客生成器附件不會發送鏈接節點JS

builder.DialogAction.send({ 

    text: 'Terms & Conditions', 
    attachments: [ 
     { 
      contentType: 'text/html', 
      contentUrl: 'https://www.mycompany.com/termsandconditions', 
      name: 'Terms & Conditions' 
     } 
    ] 
})(session); 

這似乎工作尋找與其他MIME類型如.png和.json。但林不知道爲什麼這不允許可點擊的鏈接。

+0

您使用的是什麼頻道? – JasonSowers

回答

0

要發送帶有URL的文本消息,不需要特殊配置,只需以純文本形式發送URL即可。例如:session.send('Message with URL: https://botframework.com');