使用 botframework rest-api 将 .txt、.pdf 或 zip 文件附加到 skype bot
Attach .txt, .pdf or zip file with skype bot using botframework rest-api
我尝试使用 rest-api 将 .txt 和 .pdf 文件附加到 Skype bot,但出现此错误:
{
"error": {
"code": "BadArgument",
"message": "Unknown attachment type"
}
}
同时我发现 ,谁能确认 pdf 或文本文件附件是否受到限制,因为他们的 api 中没有明确声明?
我试过这种格式:
{
"type": "message",
"recipient": {
"id": "xxxxxxxJ0niMZOII93xxxxL1E"
},
"text": "Here's a picture of the duck I was telling you about.",
"attachments": [
{
"contentType": "application/pdf",
"contentUrl": "myfileurl",
"name": "filename.pdf"
}
]
}
提前致谢。
Sending attachments such as PDFs is not supported in bots yet due to security concerns. Skype can only send media attachments such as audio and video.
可以参考一下here
我尝试使用 rest-api 将 .txt 和 .pdf 文件附加到 Skype bot,但出现此错误:
{
"error": {
"code": "BadArgument",
"message": "Unknown attachment type"
}
}
同时我发现
{
"type": "message",
"recipient": {
"id": "xxxxxxxJ0niMZOII93xxxxL1E"
},
"text": "Here's a picture of the duck I was telling you about.",
"attachments": [
{
"contentType": "application/pdf",
"contentUrl": "myfileurl",
"name": "filename.pdf"
}
]
}
提前致谢。
Sending attachments such as PDFs is not supported in bots yet due to security concerns. Skype can only send media attachments such as audio and video.
可以参考一下here